tinyMCE-mention icon indicating copy to clipboard operation
tinyMCE-mention copied to clipboard

Down arrow (keyboard) not work in the drop down for more then 10 elements in a list

Open hardik-singhal opened this issue 5 years ago • 5 comments

hardik-singhal avatar Nov 11 '19 13:11 hardik-singhal

@StevenDevooght Please look into this

hardik-singhal avatar Nov 13 '19 13:11 hardik-singhal

Hi,

Can you create a fiddle reproducing the problem?

StevenDevooght avatar Jan 06 '20 14:01 StevenDevooght

@StevenDevooght , I had a similar issue, where I needed to view options via keyboard only, the options get hidden when the <ul> dropdown has a fixed height and a large number of options are available, the highlighted option does not remain, in the view. Here is fiddle example

https://jsfiddle.net/shivarchit/og2fq3b4 I fixed this by adding scrollIntoView(false) under your plugin.js when keyboard functions are triggered.

Also, I accidentally created the wrong pull request, sorry about that. This is what I added,

var element = this.$dropdown.find('li').eq(index); element[0].scrollIntoView({ block: 'nearest', inline: 'nearest', behavior: 'smooth' });

to highlightNextResult and highlightPreviousResult functions in plugin.js

shivarchit avatar Jan 16 '20 10:01 shivarchit

@shivarchit Thankyou for providing the fiddle, I also have the same issue with the tinyMCE-mention . I tried the solution you provided in your last comment and it works. thanks for helping but i will ask @StevenDevooght to update this in the project so that it can be directly used without changing every time we install tinyMCE-mentions. Thanks!

hardik-singhal avatar Jan 16 '20 10:01 hardik-singhal

@hardik-singhal can you favour me a help? can you check and tell whether this plugin works on mobile? If so what is the procedure?

developeronboard avatar Apr 24 '20 07:04 developeronboard