BiblioNexus-Foundation / scripture-editors

Monorepo for various Scripture editors
MIT License
1 stars 1 forks source link

Not providing view options makes cursor reset after every input #134

Closed tjcouch-sil closed 3 weeks ago

tjcouch-sil commented 1 month ago

Describe the bug If you don't provide view options, the editor only lets you input once at a time before it resets and puts your cursor back to the start of the line you're on.

To Reproduce Steps to reproduce the behavior:

  1. In the sandbox, remove the view property from the options object.
  2. Put your cursor somewhere that isn't at the start of a line
  3. Press any input key (character, backspace, etc)
  4. Cursor resets to the start of the line

Expected Behavior Either fill in the default options if they are not provided in a way that doesn't cause the editor to fully reload with every change (my personal preference and what I would expect to happen as "options" are usually providing things that differ from default), or make the view property mandatory (and please provide an example of how to provide the default settings in the TSDoc so we aren't guessing).

Thanks!

Tested on platform editor.

irahopkinson commented 3 weeks ago

Fixed in PR #143.