dce-reactkit 3.4.0-beta.5 → 3.4.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js
CHANGED
|
@@ -39548,13 +39548,13 @@ const CreatableMultiselect = (props) => {
|
|
|
39548
39548
|
* @param event keyboard event
|
|
39549
39549
|
*/
|
|
39550
39550
|
const handleKeyDown = (event) => {
|
|
39551
|
-
event.preventDefault();
|
|
39552
39551
|
// Skip if no input value
|
|
39553
39552
|
if (!inputValue) {
|
|
39554
39553
|
return;
|
|
39555
39554
|
}
|
|
39556
39555
|
// Add values if enter or tab is pressed
|
|
39557
39556
|
if (['Enter', 'Tab'].includes(event.key)) {
|
|
39557
|
+
event.preventDefault();
|
|
39558
39558
|
addValues(inputValue);
|
|
39559
39559
|
}
|
|
39560
39560
|
};
|