Skip to content

Disabled button inside a popover can still close the popover #2091

@kaiyoma

Description

@kaiyoma

Bug report

  • Package version(s): 2.0.0-beta.3
  • Browser and OS versions: Chrome 64 on Windows 10

Steps to reproduce

  1. Render a popover with a Button inside
  2. Set the pt-popover-dismiss class on the Button and also disabled={true}

Actual behavior

The button appears to be disabled, the mouse cursor changes when hovering over the button, but clicking causes the popover to close.

Expected behavior

The button should be disabled, the mouse cursor should change when hovering over the button, and clicking should do nothing.

According to the Blueprint Button docs:

Button uses the native disabled attribute on the tag so the browser disables all interactions ...

If all interactions are being disabled, how does clicking cause the popover to close?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions