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
[4.0] Fix tags creation #24743
[4.0] Fix tags creation #24743
Conversation
@@ -105,7 +105,7 @@ window.customElements.define('joomla-field-fancy-select', class extends HTMLElem | |||
// Handle typing of custom term | |||
if (this.allowCustom) { | |||
this.addEventListener('keydown', (event) => { | |||
if (event.keyCode !== this.keyCode.ENTER || event.target !== this.choicesInstance.input) { | |||
if (event.keyCode !== this.keyCode.ENTER || event.target !== this.choicesInstance.input.element) { |
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.
Line 108 exceeds the maximum line length of 100 max-len
I have tested this item ✅ successfully on 9ea050f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24743. |
I have tested this item ✅ successfully on 9ea050f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24743. |
Status "Ready To Commit". |
it did because i tested downgrading the version and it worked ;) |
@franz-wohlkoenig it definitely doesn't fix the first issue and i can't reproduce the second (although as hannes suggested on the second it was related to setup doesn't mean it's fixed) |
@@ -105,7 +105,8 @@ window.customElements.define('joomla-field-fancy-select', class extends HTMLElem | |||
// Handle typing of custom term | |||
if (this.allowCustom) { | |||
this.addEventListener('keydown', (event) => { | |||
if (event.keyCode !== this.keyCode.ENTER || event.target !== this.choicesInstance.input) { | |||
if (event.keyCode !== this.keyCode.ENTER | |||
|| event.target !== this.choicesInstance.input.element) { |
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.
Unexpected tab character no-tabs
Status set on Pending. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24743. |
76d56a7
to
db6e5e4
Compare
@franz-wohlkoenig just a codestyle fix for hound. No need to retest. As soon as tests pass i'm going to merge |
Thanks guys! |
Summary of Changes
Currently the creation of dynamic tags is broken in the 4.0 branch. This fixes it (has been the case since we merged the update of choices 7)
Testing Instructions
Type a tag with a new value into the tags box and hit enter
Expected result
Tag is created
Actual result
It isn't
Documentation Changes Required
none