teragrep / ajs_01

User interface for Teragrep
Apache License 2.0
0 stars 0 forks source link

Error message doesn't disappear in note-create #194

Closed ronja-ui closed 1 year ago

ronja-ui commented 1 year ago

"Input is not valid. Please, use only letters, numbers and symbols "/" "-" and "_"." error message doesn't disappear even if you enter a correct name for a notebook in note-create.

BVVLD commented 1 year ago

The issue was most likely caused by the validation code and logic for checking Enter key pressed being combined and triggered by non-optimal event listener. The logic was refactored and separated. The issue also now is provided with test suite, which ensures that validation logic is working correctly, all scope variables, responsible for showing error messages, are changed in the right time and note-create function is called only in the right situation.