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

IBX-2454: Content Type/Product Type page should be scrolled down to invalid fields #346

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

lucasOsti
Copy link
Contributor

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-2454
Bug fix? no
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Checklist:

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

Comment on lines 318 to 322
let scrollToNode = firstInvalidInput;

if (fieldDefinition) {
scrollToNode = fieldDefinition;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let scrollToNode = firstInvalidInput;
if (fieldDefinition) {
scrollToNode = fieldDefinition;
}
const scrollToNode = fieldDefinition ?? firstInvalidInput;

@lucasOsti lucasOsti requested a review from GrabowskiM March 1, 2022 13:47
@lucasOsti lucasOsti force-pushed the IBX-2454-scrolled-to-invalid-input branch from 820545f to 96d2386 Compare March 4, 2022 13:48
@dew326 dew326 merged commit bcae99a into ibexa:main Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants