Skip to content

Commit

Permalink
fix(GRANITE-38030): Using private browser window would intermittently…
Browse files Browse the repository at this point in the history
… not show the pop up context menu (#202)

Co-authored-by: Pareesh Gupta <pareeshgupta@Pareeshs-MacBook-Pro.local>
  • Loading branch information
Pareesh and Pareesh Gupta committed Feb 14, 2022
1 parent 6aa230f commit d648031
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions coral-component-masonry/src/scripts/MasonryItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,13 @@ const MasonryItem = Decorator(class extends BaseComponent(HTMLElement) {
accessibilityState.id = accessibilityState.id || commons.getUID();

// @a11y Wait a frame and append live region content element so that it is the last child within item.
if (!accessibilityState.parentNode) {
this.appendChild(accessibilityState);
}
// wait for next macrotask to avoid appending the accessibility state element before quickactions.
setTimeout(() => {
if (!accessibilityState.parentNode) {
this.appendChild(accessibilityState);
}
});

this._elements.accessibilityState = accessibilityState;

// @a11y Item should be labelled by accessibility state.
Expand Down

0 comments on commit d648031

Please sign in to comment.