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

SELECTED event never fired on iOS due to click event not being invoked on mobile devices #57

Open
jakenorthey opened this issue Sep 4, 2018 · 0 comments

Comments

@jakenorthey
Copy link

This is likely due to the jQuery.click event not firing events on iOS. The events fire like this:

  1. Click emoji Setup js #1: Setup js #1.MOUSEENTER
  2. Click different emoji Removed sass cache. #2: Setup js #1.MOUSELEAVE Removed sass cache. #2.MOUSEENTER

A work around in the mean time is:

    var picker = new EmojiPicker(...);
    picker.categories.forEach(function(cat) {
      cat.emojis.forEach(function(emoji) {
        emoji.$emoji.on('touchend.emoji', function() {
          if(emoji._bubble){
            emoji._bubble(picker.defaults.events.SELECTED, emoji);
          }
        });
      });
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant