Skip to content

Commit

Permalink
fix(Popper): fixed flicker when opening popper content (patternfly#9339)
Browse files Browse the repository at this point in the history
* fix(Popper): fixed flicker when opening popper content

* fixed re-focus delay when closing popover

* updated DatePicker test to have consistent value
  • Loading branch information
wise-king-sullyman authored and nicolethoen committed Sep 1, 2023
1 parent 3d81c69 commit 6e2d563
Show file tree
Hide file tree
Showing 11 changed files with 230 additions and 165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ exports[`DataList DataListAction dropdown 1`] = `
data-ouia-component-id="OUIA-Generated-Dropdown-1"
data-ouia-component-type="PF5/Dropdown"
data-ouia-safe="true"
style="position: absolute; left: 0px; top: 0px; z-index: 9999;"
style="position: absolute; left: 0px; top: 0px; z-index: 9999; opacity: 0; transition: opacity 0ms cubic-bezier(.54, 1.5, .38, 1.11);"
>
<div
class="pf-v5-c-menu__content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test('Error state can be cleared from outside', async () => {
test('With popover opened', async () => {
const user = userEvent.setup();

const { asFragment } = render(<DatePicker />);
const { asFragment } = render(<DatePicker value="2020-03-17" />);

await user.click(screen.getByRole('button', { name: 'Toggle date picker' }));
await screen.findByRole('button', { name: 'Previous month' });
Expand Down
Loading

0 comments on commit 6e2d563

Please sign in to comment.