You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The role attribute on the first pfe-dropdown-item is not present
See that the role attribute on the first pfe-dropdown-item is present in the plain HTML version
Expected behavior
The role of the pfe-dropdown-item should be a menu item if the pfe-item-type is a link.
Screenshots
Developer notes
I suspect it's an issue related to the timing of finding this._item in the slot in the constructor of PfeDropdownItem. This shouldn't be done in the constructor. And since the attributeChangedCallback is firing before the connectedCallback, we can't set this._item in the connectedCallback either. I think we'll need to set this._item in the attributeChangedCallback.
pfe-dropdown: role attribute not set properly in React and Vue
This test fails in React and Vue.
https://github.com/patternfly/patternfly-elements/blob/master/elements/pfe-dropdown/test/pfe-dropdown_test.html#L82
Impacted component(s)
Steps to reproduce
Expected behavior
The role of the pfe-dropdown-item should be a menu item if the pfe-item-type is a link.
Screenshots
Developer notes
I suspect it's an issue related to the timing of finding
this._item
in the slot in the constructor of PfeDropdownItem. This shouldn't be done in the constructor. And since theattributeChangedCallback
is firing before theconnectedCallback
, we can't setthis._item
in theconnectedCallback
either. I think we'll need to setthis._item
in theattributeChangedCallback
.https://github.com/patternfly/patternfly-elements/blob/master/elements/pfe-dropdown/src/pfe-dropdown-item.js#L28
The text was updated successfully, but these errors were encountered: