Semantic-Org/Semantic-UI-React

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

开放

#4,488 创建于 2024年7月24日

 (6 条评论) (0 个反应) (0 位负责人)JavaScript (4,065 个派生)batch import
buggood first issue

仓库指标

星标
 (13,136 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南