hassio-addons/addon-node-red

Bug in multi-line editors, visible cursor does not line up with where text is entered #452

lightmaster posted onGitHub

Problem/Motivation

When typing in a multi-line box, the visible cursor and where the cursor actually are do not line up, leading to a very difficult time trying to click something on the line to add or remove letters.

Expected behavior

The visible cursor and location where text is modified should be the same.

Actual behavior

Bug recorded in this Youtube Video. It seems that the location where text is being modified is to the right of the visible cursor, and as the cursor progresses further across the text box, the gap between the visible cursor and where the text is modified at grows.

Steps to reproduce

I have be able to reproduce this every time I try to type in a multi-line text box, such as the Template box in the above video, and also in the "Edit JSON" Editor. The Visual JSON Editor does not have this problem

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it)


:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

posted by addons-assistant[bot] about 5 years ago

@lightmaster do you see the same issue if you disable dark_mode?

posted by bonanitech about 5 years ago

@lightmaster thanks for the heads up. The problem was in the dark theme. I just released a new version of it with the fix.

This issue can be closed.

posted by bonanitech about 5 years ago

Is there a way to add these changes before the next release? I tried removing those lines from the theme, but they keep getting added back when I restart node-red.

posted by lightmaster about 5 years ago

You could add node-red-contrib-theme-midnight-red@latest to npm_packages in the Config section of the add-on. I don't like doing this though.

posted by bonanitech about 5 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

posted by addons-assistant[bot] about 5 years ago

Fund this Issue

$0.00
Funded

Pull requests