lukashornych / evitalab

Official web-based GUI client for evitaDB e-commerce database. It is built to help developers who use evitaDB with exploring and debugging their domain structure and data. Besides standard query executing, it also supports multiple no-code tools to quickly navigate through domain structure, docs and data without needing to write any queries.
https://github.com/lukashornych/evitalab
Apache License 2.0
7 stars 1 forks source link

Cannot paste multiline query into entity grid filter/order input #118

Open lukashornych opened 5 months ago

lukashornych commented 5 months ago

Filter and order inputs in entity grid have functionality to ignore any new line characters (primarily when pressing Enter manually) to not break the UI. However, there is one side-effect to how the functionality is implemented. If there is a newline character in new registered text change, the entire CodeMirror transaction is discarded. This is fine when the query is manually typed, but when pasted as a whole, the entire query is a single change for the editor and thus it is discarded entirely.

Ideal solution would be to remove all new-line characters from the pasted text and than paste it into the editor.