Custom expression editor: handle source reformatting (#19646)
When the text representation gets reformatted, the old caret position
might not be sensible anymore. Hence, just push the caret to the end.
* Add e2e test for caret position after blur and refocus
Co-authored-by:
Gustavo Saiani <gustavo@poe.ma>
Showing
- frontend/src/metabase/query_builder/components/expressions/ExpressionEditorTextfield.jsx 7 additions, 0 deletions...lder/components/expressions/ExpressionEditorTextfield.jsx
- frontend/test/metabase/scenarios/custom-column/custom-column.cy.spec.js 18 additions, 0 deletions...metabase/scenarios/custom-column/custom-column.cy.spec.js
Please register or sign in to comment