Skip to content

Commit 0f01550

Browse files
committed
bump playwright for UI mode improvements
1 parent 1ccff37 commit 0f01550

File tree

3 files changed

+46
-30
lines changed

3 files changed

+46
-30
lines changed

libs/ui/lib/number-input/NumberInput.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,8 @@ export const NumberInput = React.forwardRef<
7171
})
7272

7373
function IncrementButton(props: AriaButtonProps<'button'> & { className?: string }) {
74-
const { children } = props
7574
const ref = useRef(null)
76-
const { buttonProps } = useButton(
77-
{
78-
...props,
79-
},
80-
ref
81-
)
75+
const { buttonProps } = useButton(props, ref)
8276

8377
return (
8478
<button
@@ -89,7 +83,7 @@ function IncrementButton(props: AriaButtonProps<'button'> & { className?: string
8983
)}
9084
ref={ref}
9185
>
92-
{children}
86+
{props.children}
9387
</button>
9488
)
9589
}

package-lock.json

Lines changed: 43 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"devDependencies": {
7676
"@ladle/react": "^3.2.1",
7777
"@mswjs/http-middleware": "^0.8.0",
78-
"@playwright/test": "^1.37.1",
78+
"@playwright/test": "^1.38.1",
7979
"@testing-library/dom": "^9.3.1",
8080
"@testing-library/jest-dom": "^5.17.0",
8181
"@testing-library/react": "^14.0.0",

0 commit comments

Comments
 (0)