search input: clear button isn't visible when I input multibyte string #1811

Closed
wtetsu opened this Issue Jun 10, 2011 · 9 comments

Projects

None yet

5 participants

@wtetsu
wtetsu commented Jun 10, 2011

A clear button on text field isn't visible when I input multibyte string(Japanese) into textbox.
(I don't know about Chinese, Korean, and so on)

screen shot:
https://forum.jquery.com/topic/search-input-bug-clear-button-isn-t-visible-when-i-input-multibyte-string-inot-textbox

@toddparker
Contributor

Any ideas on what we'd need to do to fix this? I'm not as familiar with mutibyte.

@wtetsu
wtetsu commented Aug 11, 2011

I think that onkeyup event isn't reliable way in this case.

I can reproduce it to use voice input on android(Galaxy S).
Probably, you can reproduce by using voice input in English.

I think setInterval is better way, so I pulled request.
But I don't know whether this is best way or not.
#1812

By the way, both multibyte and voice input works fine on Google top page search field for smartphone .

@gseguin gseguin was assigned Aug 11, 2011
@eddiemonge
Contributor

How are you inputting the multibyte character? This sounds like it could be two different issues. The first is the multibyte and the second is alternative methods of inserting text into an input field.

@wtetsu
wtetsu commented Dec 19, 2011

I I think that both the two issues are essentially the same.

  • Clear button on search field appears when keyup event occurred.
  • There are several ways to input text into textbox without keyup event.

One of the ways is voice input on android, and one of the ways is frick input...


I'm using frick input to input Japanese on iPhone:
http://www.youtube.com/watch?v=g0S1uRPixkM&feature=player_embedded

By the way, I Tested again.

I can reproduce the problem on iPhone4(iOS4.3.5)
I cann't reproduce on iPhone4S(iOS5.0.1)

@toddparker
Contributor

If you have a suggestion on how to improve this, please post it here. Since we're not familiar with this setup, any insight is helpful

@toddparker
Contributor

We added a few additional triggers for this including paste in addition to keyup but I don't think polling is going to be acceptable. SInce nobody seems to have ideas on other events we can tie into, closing as won't fix. We'll give this a look if anyone can suggest an approach to look into.

@toddparker toddparker closed this Sep 24, 2012
@jaspermdegroot
Member

@toddparker - I think we need to bind to the input event as well to solve this. See #2834

@toddparker
Contributor

@uGoMobi - worth a try.

@jaspermdegroot
Member

This issue should be fixed by commit a743616

@jaspermdegroot jaspermdegroot added a commit that referenced this issue Dec 3, 2012
@jaspermdegroot jaspermdegroot Textinput: Toggle clear button on input event as well.
Fixes problems with multibyte. See issues #1811 and #2834.
ba9bcce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment