-
Notifications
You must be signed in to change notification settings - Fork 57
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
EZP-31266: Changing items order in Relation List doesn't work on Firefox #1180
EZP-31266: Changing items order in Relation List doesn't work on Firefox #1180
Conversation
src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js
Outdated
Show resolved
Hide resolved
findOrderInputs().forEach((item) => item.addEventListener('blur', updateSelectedItemsOrder, false)); | ||
findOrderInputs().forEach((item) => { | ||
item.addEventListener('blur', updateSelectedItemsOrder, false); | ||
item.addEventListener('change', focusOnElement, false); |
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.
If this is only on FF I don't see a point to attach this event in all browsers. Please add a check if it is FF and attach it only in this case.
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.
the added condition only for FF attach
src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js
Show resolved
Hide resolved
…ionlist.js Co-Authored-By: Dariusz Szut <dew326@gmail.com>
…ionlist.js Co-Authored-By: Dariusz Szut <dew326@gmail.com>
Why add prettier to packages.json? |
…n-Relation-List-doesnt-work-on-Firefox' into EZP-31266-Changing-items-order-in-Relation-List-doesnt-work-on-Firefox
Mistake, when I install prettier and I didn't notice that package.json was added as well |
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.
@mateuszdebinski note for the future: make branch names a bit shorter - in this case, it could have been just: EZP-31266-relationlist_ordering_ff
.
@adamwojs please merge. :) |
Firefox for a long time has this error. The arrows aren't elements in their own right, so they can't be focused, therefore need to force focus on input when value changes
Checklist:
$ composer fix-cs
)