carbon-components-svelte 0.89.2 → 0.89.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-components-svelte",
3
- "version": "0.89.2",
3
+ "version": "0.89.4",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Svelte implementation of the Carbon Design System",
6
6
  "type": "module",
@@ -339,7 +339,7 @@
339
339
  } else if (key === "ArrowUp") {
340
340
  change(-1);
341
341
  } else if (key === "Escape") {
342
- open = false;
342
+ clear();
343
343
  }
344
344
  }}
345
345
  on:keyup
@@ -75,7 +75,7 @@
75
75
  }
76
76
  }}
77
77
  on:keydown|stopPropagation={(e) => {
78
- if (!disabled && e.key === "Enter") {
78
+ if (!disabled && (e.key === "Enter" || e.key === " ")) {
79
79
  dispatch("clear", e);
80
80
  }
81
81
  }}
@@ -103,7 +103,7 @@
103
103
  }
104
104
  }}
105
105
  on:keydown|stopPropagation={(e) => {
106
- if (!disabled && e.key === "Enter") {
106
+ if (!disabled && (e.key === "Enter" || e.key === " ")) {
107
107
  dispatch("clear", e);
108
108
  }
109
109
  }}
@@ -459,6 +459,7 @@
459
459
  if (!open) open = true;
460
460
  }
461
461
  }}
462
+ on:input
462
463
  on:keyup
463
464
  on:focus
464
465
  on:blur
@@ -255,6 +255,7 @@ export default class MultiSelect extends SvelteComponentTyped<
255
255
  clear: CustomEvent<null>;
256
256
  blur: FocusEvent | CustomEvent<FocusEvent>;
257
257
  keydown: WindowEventMap["keydown"];
258
+ input: WindowEventMap["input"];
258
259
  keyup: WindowEventMap["keyup"];
259
260
  focus: WindowEventMap["focus"];
260
261
  paste: WindowEventMap["paste"];