Semantic-Org/Semantic-UI-React

bug: [Popup] doesn't take into account popper's attributes, only styles

Open

#4 488 ouverte le 24 juil. 2024

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)JavaScript (4 065 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (13 136 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Bug Report

state.attributes.popper aren't applied to the popup wrapper div, only state.styles.popper are.

Steps

  1. Use Popup component with default props and modifiers (which include hide by default) and on="click".
  2. Open the popup by clicking the trigger.
  3. Scroll the trigger out of the viewport.

Expected Result

The popup wrapper div gets the attributes data-popper-escaped and data-popper-reference-hidden from the default hide modifier.

Actual Result

No attributes are added to the div.

Version

2.1.5

Guide contributeur