简体   繁体   中英

HTML5 DataList search available language?

In my datalist options, there are values in English and Korean.

Here is the sample :

<input type='text' list='dlValue'>
<datalist id='dlValue'>
<option values='apple'/>
<option values='사과' /> (<-This value is apple in Korean)

When I try to search the value with the Korean alphabet in the input box, there is nothing shown up, only working in English value.

So I am wondering: how can I make it searchable in Korean?

Thanks in advance.

I just quickly checked that issue on Chrome Version 72.0.3626.121 and it seemed to be working-ish.

The issue is the input cursor. When I typed in Korean in the input, the cursor was not moving forward instead it remained in front of the character and the search seemed to be not working. But if you manually move the cursor then the search worked.

This might be the issue of the browser (I haven't tested that on the other browsers.) or just because of the characteristic of Korean language input system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM