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/cjs/index.js
CHANGED
|
@@ -39574,13 +39574,13 @@ const CreatableMultiselect = (props) => {
|
|
|
39574
39574
|
* @param event keyboard event
|
|
39575
39575
|
*/
|
|
39576
39576
|
const handleKeyDown = (event) => {
|
|
39577
|
-
event.preventDefault();
|
|
39578
39577
|
// Skip if no input value
|
|
39579
39578
|
if (!inputValue) {
|
|
39580
39579
|
return;
|
|
39581
39580
|
}
|
|
39582
39581
|
// Add values if enter or tab is pressed
|
|
39583
39582
|
if (['Enter', 'Tab'].includes(event.key)) {
|
|
39583
|
+
event.preventDefault();
|
|
39584
39584
|
addValues(inputValue);
|
|
39585
39585
|
}
|
|
39586
39586
|
};
|