简体   繁体   English

HTML5 DataList 搜索可用语言?

[英]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.我刚刚在 Chrome 版本 72.0.3626.121 上快速检查了该问题,它似乎可以正常工作。

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.这可能是浏览器的问题(我没有在其他浏览器上测试过。)或者只是因为韩语输入系统的特性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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