We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba68ff commit ef12332Copy full SHA for ef12332
stories/Header.stories.tsx
@@ -284,6 +284,10 @@ function MySearchInput(props: MySearchInputProps) {
284
type={type}
285
value={search}
286
onChange={event => onSearchChange(event.currentTarget.value)}
287
+ // A bug in @gouvfr/dsfr is currently preventing the escape key event to be propagated to the input element.
288
+ // As a result this onKeyDown is never called when the user press escape and thus is useless.
289
+ // In the current state of thing there is no way to clear the search input and lost focus in controlled mode.
290
+ // We hope this issue will be resolved soon.
291
onKeyDown={event => {
292
if (event.key === "Escape") {
293
onSearchChange("");
0 commit comments