-
- Downloads
Custom expression editor: correctly accept the suggestion (#15872)
This is carried out via lexical replacement, i.e. finding the token to be replaced, instead of the rather-brittle and often-incorrect regex for prefix/postfix. * Always place the caret after the replacement text * Only accept suggested "(" when there is no forthcoming "(" already
Showing
- frontend/src/metabase/lib/expressions/suggest.js 0 additions, 19 deletionsfrontend/src/metabase/lib/expressions/suggest.js
- frontend/src/metabase/query_builder/components/expressions/ExpressionEditorTextfield.jsx 24 additions, 15 deletions...lder/components/expressions/ExpressionEditorTextfield.jsx
- frontend/test/metabase/scenarios/question/notebook.cy.spec.js 42 additions, 0 deletions...tend/test/metabase/scenarios/question/notebook.cy.spec.js
Please register or sign in to comment