react-widgets
Advanced tools
Comparing version 5.0.0-beta.8 to 5.0.0-beta.9
@@ -600,4 +600,5 @@ "use strict"; | ||
if (!open) return setFocusedItem(undefined); | ||
const hasItem = focusedItem != null; | ||
if (focusedItem != null && !data.includes(focusedItem)) { | ||
if (!hasItem && focusFirstItem || hasItem && !data.includes(focusedItem)) { | ||
const nextFocused = focusFirstItem ? list.nextEnabled(data[0]) : undefined; | ||
@@ -604,0 +605,0 @@ setFocusedItem(nextFocused); |
{ | ||
"name": "react-widgets", | ||
"version": "5.0.0-beta.8", | ||
"version": "5.0.0-beta.9", | ||
"description": "An à la carte set of polished, extensible, and accessible inputs built for React", | ||
@@ -101,3 +101,3 @@ "main": "lib/index.js", | ||
"readme": "ERROR: No README data found!", | ||
"_id": "react-widgets@5.0.0-beta.7" | ||
"_id": "react-widgets@5.0.0-beta.8" | ||
} |
Sorry, the diff of this file is not supported yet
408400
7362