-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: ':is(:is(button, input)[type=submit], button:not([type])):not([disabled]):not([form])' is not a valid selector #127
Comments
same error
vitest + @testing-library/react 只要使用 findAllByxxx 就会报错 |
Yes the selector you showed above is wrong. document.querySelector(':scope +.ant-select-item-option-selected:not(.ant-select-item-option-disabled))+.ant-select-item-option-selected:not(.ant-select-item-option-disabled'); the first :not() instance terminates with an extra parenthesis. This is the corrected broken down corrected version: document.querySelectorAll(':scope |
I have same issue in a project and I have upgraded to NWSAPI v2.2.16 which is the latest at this point. Is this issue not resolved? I try to use testing library to click
|
I see it is not released yet. I hope it gets released soon. Isn't there many with this issue and needs it resolved? |
For future records. I bypassed the issue by adding polyfill.
|
I am using a button inside a custom elements library to submit a form. When I call
this.closest('form')
from inside that button, I get this error.@testing-library/[email protected]
[email protected]
[email protected]
[email protected]
Library: https://github.com/Trendyol/baklava/blob/next/src/components/button/bl-button.ts#L151
The text was updated successfully, but these errors were encountered: