-
Notifications
You must be signed in to change notification settings - Fork 16
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-3654: Left menu and sections in edit form cleanup #542
Conversation
|
||
const { id } = sectionGroup.dataset; | ||
const hasGroupError = !!sectionGroup.querySelector('.is-invalid'); | ||
const correspodingMenuItem = |
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.
const correspodingMenuItem = | |
const correspondingMenuItem = |
}; | ||
const getLastSection = (sectionGroup) => { | ||
const sections = sectionGroup.querySelectorAll('.ibexa-anchor-navigation__section'); | ||
return sections ? [...sections].at(-1) : null; |
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.
return sections ? [...sections].at(-1) : null; | |
return sections ? [...sections].at(-1) : null; |
previousFirstVisibleSection = firstVisibleSection; | ||
|
||
const targetId = firstVisibleSection.dataset.id; | ||
|
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.
doc.querySelector(`.ibexa-anchor-navigation-menu .ibexa-dropdown__item[data-value="${id}"]`); | ||
const errorIconNode = correspodingMenuItem.querySelector('.ibexa-anchor-navigation-menu__item-error'); | ||
const dropdownWidget = doc.querySelector('.ibexa-anchor-navigation-menu .ibexa-dropdown'); | ||
errorIconNode.classList.toggle('ibexa-anchor-navigation-menu__item-error--hidden', !hasGroupError); |
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.
errorIconNode.classList.toggle('ibexa-anchor-navigation-menu__item-error--hidden', !hasGroupError); | |
errorIconNode.classList.toggle('ibexa-anchor-navigation-menu__item-error--hidden', !hasGroupError); |
@@ -1,159 +0,0 @@ | |||
(function (global, doc, ibexa) { |
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.
This removal should be considered as BC break.
7c94b75
to
6829de6
Compare
6829de6
to
6943fdd
Compare
84e8079
to
86e3bdc
Compare
@GrabowskiM when I click on 'Content' on the left menu then all inputs disappear edit: described issue affects all available contents except (user). |
e05ec20
to
ae94c07
Compare
ae94c07
to
f4e5ee4
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Checklist:
$ composer fix-cs
)