-
Notifications
You must be signed in to change notification settings - Fork 193
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
label editor: TypeError: e is undefined #1680
Comments
@brizental if you get bored with tests, wanna investigate? |
@miketaylr not sure it's related, but setting a label and clicking outside of the menu doesn't work anymore too. |
@karlcow This was intentional. The main reason was different UX paths that needed to be covered, but it's changeable. How much does it bother you? |
I prefer the older "click outside to save" behavior (b/c it matches GitHub's). |
Not sure when the change was introduced, can you file a new bug for that? |
@brizental seems like the bug is here: d11ea5e#diff-4e6286167906e6713e9772fa9eae96eaR189
(I didn't follow this PR or do review... but the first line is trying to handle escape key, right? isn't that covered by the following already? d11ea5e#diff-4e6286167906e6713e9772fa9eae96eaR103 keyboardEvents: {
esc: "closeEditor"
}, I've got 30 mins to kill so I'm gonna steal this issue from you @brizental. Hope that's OK! |
Hmm... looking more at this code, did we ever actually support that? Looking at the v2.6.0 version of labels.js (about 1 year ago), https://github.com/webcompat/webcompat.com/blob/8850d9f743602988b85bf3d8697f54943460e11d/webcompat/static/js/lib/labels.js I only see edit: OK, I checked out that code and we def. did support that behavior. |
OK... down a tiny rabbit hole, the code we used to handle this with was in the webcompat.com/webcompat/static/js/lib/issues.js Lines 378 to 390 in 8850d9f
|
@karlcow nevermind, I can fix it in this bug since it's related-ish. Thanks for noticing. |
@zoepage to "How much does it bother you?" well I had to fix yesterday, all the bugs I had edited through webcompat last week, because the labels didn't get set :) and I used yesterday github instead of webcompat because of that. Changing labels is one of the main thing I do on the project. :) |
STR:
expected: editor closes
actual: doesn't close
Not sure when, but this regressed. We'll need a test as well.
The text was updated successfully, but these errors were encountered: