Description:
When editing in the data explorer editor, the cursor position is not remembered between each content change, and is moved to the start of the editor.
Initial Analysis:
This seems to be caused by the following commit, which adds an @onChange event hook that mutates the sql query content, causing the @content prop to update with new content.
Rolling back to before the above commit in a dev env, the editor interacted normally.
What’s your Discourse version? It does seem to work correctly with the latest core commit, and should work with any tagged version (incl. the latest v3.4.0.beta1)