-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [plugin-emoji] improvements (#92)
* update 'blur' event handler fix #91 Allow 'on:click' event handler on emoji icon buttons to execute. * bind loop variable to callback parameter Testing proves that this isn't actually necessary. Presumably, {#each} creates a closure and the variable remains in scope. Never-the-less, (imho) this is more explicit. * update 'default.css' fix #90 change from a grid layout to a block element containing inline buttons * update "up" and "down" arrow key handlers Since emoji button widths can vary by the count of unicode characters, advancing either forward or backward by a constant count of emojis doesn't work. Now, the determination of the emoji that is above or below by one row is done based on some calculation using position of each emoji within the DOM. Note: the plugin now takes a new option parameter: "maxResults". This is the maximum count of emojis to display that match partial user input. The default is: 120. --------- Co-authored-by: BearToCode <[email protected]>
- Loading branch information
1 parent
ebcc6a0
commit db8d3f0
Showing
3 changed files
with
93 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters