-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
querySelector
issue introduced in 0.2.1
#212
Comments
Fixed in 8aecf2d, will release soon. |
@pacocoursey any ETA on when the new release will be out? |
@pacocoursey Sorry to bother again, but this is a major regression that was introduced in a minor version bump, so this will introduce silent runtime failures for more people (anyone who pinned the minor version) the longer a hotfix isn't deployed |
Thanks @pacocoursey. Looking forward for the fix. |
Workaround for CommandItem value with quotesBy default, Example Implementation:// Instead of letting it use the children (which may contain quotes):
<CommandItem>
User "John Doe" {/* problematic - quotes in the text */}
</CommandItem>
// Explicitly set the value prop to something without quotes:
const getOptionValue = (x: any) => x.id;
<CommandItem
key={getOptionValue(o)}
onSelect={() => handleSelect(o)}
value={getOptionValue(o)} // use ID or other quote-free value for matching
>
User "John Doe" {/* quotes in children won't affect matching now */}
</CommandItem> |
The latest update v0.2.1 introduces a bug that was not present in v0.2.0. The following error is thrown when the child of a
CommandItem
includes a string with the quote character ("
):The text was updated successfully, but these errors were encountered: