Replies: 1 comment 3 replies
-
|
Switch component is actually a checkbox under the hood. Maybe it would work something like this: page.getByRole("checkbox", { name: "my-switch-label" }); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dependencies check up
What version of @mantine/* packages do you have in package.json?
8.2.1
What package has an issue?
@mantine/core
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
👋
I've tried to use these playwright locators, which are basically the same:
I can read the current value but cannot change it:
I guess the problem is that mantine puts the input off screen and makes it invisible using this:
by using this locator it's possible to interact with the switch, but not to read the current value:
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
Beta Was this translation helpful? Give feedback.
All reactions