mirror of
https://github.com/jlengrand/adyen-web.git
synced 2026-03-10 08:01:22 +00:00
Merge pull request #1573 from Adyen/fix/select-close-on-click-outside
Fixes bug with Select not reseting when clicking outside
This commit is contained in:
@@ -98,7 +98,7 @@ function Select({
|
||||
? !e.composedPath().includes(selectContainerRef.current)
|
||||
: !selectContainerRef.current.contains(e.target);
|
||||
if (clickIsOutside) {
|
||||
setShowList(false);
|
||||
closeList();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user