You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete all of the code from the code-input element at the bottom of the page and replace it with <abc>
Look in DevTools. The code element's classes and its contents update every single frame.
Add a long string of as to the end of the <abc> so the textarea begins to scroll horizontally; you now can't scroll back to the left without moving the cursor to the left. This is very likely due to the blur/focus to move to the caret lines of code in the update function.
This occurs in both Chrome and Firefox.
My suspicions are that the update function is being called every frame. The code-input library removes the highlighted="yes" attribute on the pre code in order to be able to highlight text live, but this might be causing problems with recursion present in PHP template language. This does not occur with autodetected JavaScript.
The text was updated successfully, but these errors were encountered:
To reproduce this:
code-input
element at the bottom of the page and replace it with<abc>
code
element's classes and its contents update every single frame.a
s to the end of the<abc>
so the textarea begins to scroll horizontally; you now can't scroll back to the left without moving the cursor to the left. This is very likely due to the blur/focus to move to the caret lines of code in theupdate
function.This occurs in both Chrome and Firefox.
My suspicions are that the
update
function is being called every frame. Thecode-input
library removes thehighlighted="yes"
attribute on thepre code
in order to be able to highlight text live, but this might be causing problems with recursion present in PHP template language. This does not occur with autodetected JavaScript.The text was updated successfully, but these errors were encountered: