Skip to content

fix(popover): handle click within anchor children#5184

Merged
chasestarr merged 1 commit intomasterfrom
chasestarr-patch-40
Oct 3, 2022
Merged

fix(popover): handle click within anchor children#5184
chasestarr merged 1 commit intomasterfrom
chasestarr-patch-40

Conversation

@chasestarr
Copy link
Collaborator

Description

import * as React from "react";
import { StatefulPopover } from "baseui/popover";

export default () => {
return (
<StatefulPopover
content={() => (

popover content

)}
returnFocus
autoFocus
>
Click me

);
}

If you continuously click on “Click me”, the popover content will just flicker.

Patch: Bug Fix

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 3, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 451cdad:

Sandbox Source
Basic usage Configuration

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 451cdad
Status:🚫  Build failed.

View logs

@chasestarr chasestarr merged commit 12b86d3 into master Oct 3, 2022
@chasestarr chasestarr deleted the chasestarr-patch-40 branch October 3, 2022 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants