Skip to content

[bug] MenuItem 禁用后仍可选择已展开菜单的选项 #3333

Open

Description

@Xapollon430

NutUI 包名

@nutui/nutui

NutUI 版本号

4.3.14 and current v4 source

平台

H5

重现链接

Minimal runnable reproduction

重现步骤

  1. Open a MenuItem with Apple selected.
  2. Set its disabled prop while the menu is still open.
  3. Click Orange.

期望的结果是什么?

Apple stays selected and no change event fires.

实际的结果是什么?

Orange replaces Apple and change fires once. The trigger is visibly disabled before the click.

环境信息

Vue 3.5, Chromium, NutUI H5.

其他补充信息

Watch the browser reproduction.

I verified a small option-handler guard that preserves the value. If this is suitable for a contribution, I can submit the patch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions