mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
The problem was that In ReactCodemirror, the updateListener calls onChange whenever the document changes and it's not marked as a remote transaction, but in value panel, when we switch changes, the new value coming to the panel was considered as the user change. So, update listener were calling onChange from TextValuePresentation which calls editAction.set() and changes the real cell value. In order to fix it, this commit mark programmatic updates by dispatching transaction annotations together with a change. Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>