WebCoder49 / code-input

Fully customisable, editable, syntax-highlighted textareas + plugins
https://css-tricks.com/creating-an-editable-textarea-that-supports-syntax-highlighted-code/
MIT License
171 stars 23 forks source link

Jump to find-and-replace matches only scrolls horizontally not vertically with Prism on Firefox #119

Open WebCoder49 opened 4 days ago

WebCoder49 commented 4 days ago

With the find-and-replace plugin, the up and down arrow buttons/enter key should move between all the found matches.

They do so in most cases, with both highlighting engines on Chrome, but not with Prism.js on Firefox, where the horizontal scrolling occurs as well as the match colour changes, but the vertical scrolling to the match does not.

(All tests on Firefox/Chromium on Wayland on EndeavourOS Arch Linux.)

WebCoder49 commented 4 days ago

This bug occurs in v2.3.1 (the CodePen demo) and v2.4.0 (tests folder) of code-input.