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/package.json
CHANGED
|
@@ -196,7 +196,6 @@ const CreatableMultiselect: React.FC<Props> = (props) => {
|
|
|
196
196
|
* @param event keyboard event
|
|
197
197
|
*/
|
|
198
198
|
const handleKeyDown: KeyboardEventHandler = (event) => {
|
|
199
|
-
event.preventDefault();
|
|
200
199
|
|
|
201
200
|
// Skip if no input value
|
|
202
201
|
if (!inputValue) {
|
|
@@ -205,6 +204,7 @@ const CreatableMultiselect: React.FC<Props> = (props) => {
|
|
|
205
204
|
|
|
206
205
|
// Add values if enter or tab is pressed
|
|
207
206
|
if (['Enter', 'Tab'].includes(event.key)) {
|
|
207
|
+
event.preventDefault();
|
|
208
208
|
addValues(inputValue);
|
|
209
209
|
}
|
|
210
210
|
};
|