Closed pandurijal closed 2 years ago
Name | Link |
---|---|
Latest commit | 03ea13a0089a35fdf0c348255fef59fc17213bc0 |
Latest deploy log | https://app.netlify.com/sites/evergreen-storybook/deploys/628d65d51bbcee00084a7d49 |
Deploy Preview | https://deploy-preview-1473--evergreen-storybook.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
Hey @pandurijal! Thanks for the contribution. I was in the middle of typing up a response about some issues I encountered and it looks like your most recent commit resolved them! (and fixed the failing tests - glad it was caught!) Gonna do some additional smoke testing in storybook before I merge it in, but this is looking good now.
Edit: I am still seeing some issues in the base Autocomplete
component. Pressing esc
throws a different error now:
For what it's worth, I was thinking a simpler check against a null
or undefined
value in the getValues
function would suffice:
The inputValue = ''
doesn't seem to catch null
being passed in from event.target.value
, but I imagine this would guard against it:
const getValues = (inputValue = "") => {
inputValue = inputValue ?? "";
return separator
? inputValue
.split(separator)
.map((v) => v.trim())
.filter((v) => v.length > 0)
: [inputValue];
};
Hi @brandongregoryscott!
Well yeah, I thought the issue was from the Downshift component, turns out your approach could fix the issue without having any additional effect on another component(s). So I think I would go with your solution after testing some more things I will push the changes.
Overview Resolves #1472
The proposed behavior for pressing
esc
:esc
will close the dropdownesc
will do nothing (the same asTextInput
andTextArea
component)Screenshots (if applicable)
Documentation