Skip to content
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

Conversation

mateuszdebinski
Copy link
Contributor

Question Answer
Tickets EZP-31266
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

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:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

findOrderInputs().forEach((item) => item.addEventListener('blur', updateSelectedItemsOrder, false));
findOrderInputs().forEach((item) => {
item.addEventListener('blur', updateSelectedItemsOrder, false);
item.addEventListener('change', focusOnElement, false);
Copy link
Member

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.

Copy link
Contributor Author

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

mateuszdebinski and others added 2 commits January 7, 2020 15:42
…ionlist.js

Co-Authored-By: Dariusz Szut <dew326@gmail.com>
…ionlist.js

Co-Authored-By: Dariusz Szut <dew326@gmail.com>
@mateuszbieniek
Copy link
Contributor

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
@mateuszdebinski
Copy link
Contributor Author

Why add prettier to packages.json?

Mistake, when I install prettier and I didn't notice that package.json was added as well

Copy link
Member

@konradoboza konradoboza left a 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.

@konradoboza
Copy link
Member

@adamwojs please merge. :)

@adamwojs adamwojs merged commit 68f71cf into ezsystems:1.5 Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants