From 267b4ac4a200391d7cf295a1a5868d6b58fc9b85 Mon Sep 17 00:00:00 2001 From: Joao Garin Date: Thu, 25 Jan 2024 13:46:08 +0000 Subject: [PATCH] fix(Geosuggest): fix input id and label for (#491) * fix(Geosuggest): fix input id and label for * revert example * Update src/Geosuggest.tsx Co-authored-by: Leslie Lawendel * revert test changes * adapt test * adapt test * add pr comments * Update src/input.tsx Co-authored-by: Leslie Lawendel --------- Co-authored-by: Leslie Lawendel --- src/Geosuggest.tsx | 4 +++- src/input.tsx | 6 +++++- test/Geosuggest_spec.tsx | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/Geosuggest.tsx b/src/Geosuggest.tsx index 394d587..c29578d 100644 --- a/src/Geosuggest.tsx +++ b/src/Geosuggest.tsx @@ -660,7 +660,9 @@ export default class GeoSuggest extends React.Component { ); return ( -
+
{input}
{suggestionsList}
diff --git a/src/input.tsx b/src/input.tsx index c0c9138..176136e 100644 --- a/src/input.tsx +++ b/src/input.tsx @@ -163,7 +163,11 @@ export default class Input extends React.PureComponent { return ( <> {shouldRenderLabel && ( -