We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cascader/src/OptionList/index.tsx
Lines 157 to 159 in 6ffd733
当代码中Selector中存在双引号时,代码将会抛出异常
测试代码: document.querySelector('"asdlfjlksj"')
document.querySelector('"asdlfjlksj"')
异常信息如下所示
Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '"asdlfjlksj"' is not a valid selector.
The text was updated successfully, but these errors were encountered:
try { ele = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.querySelector("li[data-path-key=\"".concat(cellKeyPath.replace(/\\{0,2}"/g, '\\"'), "\"]")); } catch(e) { }
我暂时在我的代码中打了个补丁
Sorry, something went wrong.
No branches or pull requests
cascader/src/OptionList/index.tsx
Lines 157 to 159 in 6ffd733
测试代码:
document.querySelector('"asdlfjlksj"')
异常信息如下所示
The text was updated successfully, but these errors were encountered: