-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2122 Expression builder - After expression validation, chars need to be entered twice to reflect #2123
#2122 Expression builder - After expression validation, chars need to be entered twice to reflect #2123
Conversation
Signed-off-by: Michael Pavlik <[email protected]>
Waiting for #2118 to merge, then I can use the updated utility files to create a unit test for the fix. |
…sion-builder-chars
Cannot add a unit test case that tests that the cursor position is in the right spot. I believe to find the cursor position, I would need to access an instance of |
@mikieyx If we remove those lines, the below scenario will not be working I guess, even after saving it from tearsheet. expression-editor.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check the scenario mentioned in above comment
The scenario doesn't work with my changes. I'll make some changes so the above scenario works while also eliminating the bug. |
Signed-off-by: Michael Pavlik <[email protected]>
…into expression-builder-chars
LGTM, except one scenario: Currently once the expression is edited from the editor, on closing, it is reflected in the flyout even without clicking Save. But with these changes, it reflects only on saving. expr-edit.mov |
That is the correct behavior. We should only be saving when the user clicks @mikieyx can you see why this regressed? |
Hey Matt, I'm not seeing that issue on my end. I'm opening up the editor, clicking cancel, and then clicking the calculator icon once, and it is opening. |
Can you try entering text, then clicking cancel? |
I tried that and I'm seeing your issue. After clicking the cancel, the cursor is still in the editor. You have to click twice, one to unfocus the cursor and then one to click on the expression builder icon. I'll look into it. |
Signed-off-by: Michael Pavlik <[email protected]>
…into expression-builder-chars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Hi @mikieyx @matthoward366 I saw similar behavior after editing in the flyout itself. Need to click the icon twice to open the editor modal. expressionBuilder-flyout.mov |
@veenas1 can you create a new issue for this? |
Fixes: #2122
Developer's Certificate of Origin 1.1