Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete change is not triggered for auto-completion and IME composition iOS mobile #101

Open
Voileexperiments opened this issue Jan 7, 2021 · 4 comments
Assignees
Labels
Milestone

Comments

@Voileexperiments
Copy link

I can easily reproduce this in the demo page by:

  1. Use "Events in text field"
  2. Select default English keyboard
  3. Keep selecting auto-suggestion candidates in iOS mobile

Or

  1. Use "Events in text field"
  2. Select a Chinese/Japanese keyboard
  3. Type Chinese/Japanese text that involves IME composition and select them

As can be tested here, only beforeinput and input is triggered for both cases, and compositionend for the second case.

Apparently input event listener is missing among the listeners. Why? input event is supported by all modern browsers and adding it is perfectly backwards compatible.

@xcash xcash self-assigned this Jan 7, 2021
@xcash xcash added the bug label Jan 7, 2021
@xcash xcash added this to the Future milestone Jan 7, 2021
@xcash
Copy link
Owner

xcash commented Jan 7, 2021

I don't have an IOS device to test on. I'll try to fix this and then I'll ask you for a check if you don't mind @Voileexperiments

@sunarium
Copy link

A quick workaround that handles the IME composition

    $('<your-selector>').on('input', (e) => {
        $('<your-selector>').autoComplete('show');
    });

@xcash
Copy link
Owner

xcash commented Mar 28, 2021

HI @sunarium thanks! I really need to fix this issue. Sorry for the delays guys.

@xcash xcash modified the milestones: Future, 3.0.0, 2.4.0 Mar 28, 2021
@xcash xcash modified the milestones: 2.4.0, 3.0.0 Jun 18, 2021
@Vinay9838
Copy link

No mentioned Events triggering.

$('.basicAutoSelect').on('autocomplete.freevalue',function(evt, item){
console.log(evt,item)
})

console is empty .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants