Skip to content

Commit

Permalink
fix: revert story changes
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-mladenov committed Dec 18, 2024
1 parent e9e6bc2 commit 828df17
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .storybook/stories/datagrid/datagrid-column.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* The full license information can be found in LICENSE in the root directory of this project.
*/

import { sleep } from '@cds/core/internal';
import {
ClrConditionalModule,
ClrDatagridColumn,
Expand Down Expand Up @@ -141,10 +140,9 @@ export const ColumnFilter: StoryObj = {
render: ColumnFilterTemplate,
};

export const ColumnNumberFilterOpened: StoryObj = {
export const ColumnNumberFilterOpened = {
render: ColumnFilterTemplate,
play: async ({ canvasElement }) => {
(canvasElement.querySelector('clr-dg-numeric-filter .datagrid-filter-toggle') as HTMLElement).click();
await sleep(100);
play({ canvasElement }) {
canvasElement.querySelector('clr-dg-numeric-filter .datagrid-filter-toggle').click();
},
};

0 comments on commit 828df17

Please sign in to comment.