Closed yjl9903 closed 4 months ago
The following querySelectorAll will throw error when data-value="..." string contains " (quote)
data-value="..."
https://github.com/pacocoursey/cmdk/blob/eb4fd0fdf39caf532bb2ae7deaa969dadb607150/cmdk/src/index.tsx#L399-L404
Maybe can encodeURI like this?
https://github.com/pacocoursey/cmdk/blob/eb4fd0fdf39caf532bb2ae7deaa969dadb607150/cmdk/src/index.tsx#L772-L777
The following querySelectorAll will throw error when
data-value="..."
string contains " (quote)https://github.com/pacocoursey/cmdk/blob/eb4fd0fdf39caf532bb2ae7deaa969dadb607150/cmdk/src/index.tsx#L399-L404
Maybe can encodeURI like this?
https://github.com/pacocoursey/cmdk/blob/eb4fd0fdf39caf532bb2ae7deaa969dadb607150/cmdk/src/index.tsx#L772-L777