debugger icon indicating copy to clipboard operation
debugger copied to clipboard

"Invalid Expression" text and style should go away when blurred

Open darkwing opened this issue 7 years ago • 4 comments

When we blur from the expressions element, we should clear its state so that the error styling and message does not persist.

invalidexpression

darkwing avatar Dec 09 '18 23:12 darkwing

/claim still need to modify the previous PR (#7467)

jaril avatar Dec 10 '18 03:12 jaril

Thanks for claiming the issue! :wave:

!!! Please check your email and confirm the invitation

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Dec 10 '18 03:12 claim

I think we should try to add the text currently in state on blur, since some people use tabs instead of enter. And I just looked it on chrome, chrome also tries to add whatever use typed as watch expression on blur.

AnshulMalik avatar Dec 10 '18 11:12 AnshulMalik

I've modified #7467 to the original spec laid out by @darkwing.

As for adding the text in state on blur, similar to how Chrome handles it, I'm not sure it's ideal. I'm hesitant to infer that the user meant to add the current input just because onBlur was triggered.

If there were enough people using Tab instead of Enter it could make sense to have them behave the same, but I wouldn't infer that from onBlur. I don't use Tabs that way, so feel free to weigh in here.

Personally, if the input box had focus, my expected Tab behavior would be for multiple subsequent inputs (e.g. add the current input and open another input box)

jaril avatar Dec 12 '18 01:12 jaril