carbon-components-svelte 0.89.2 → 0.89.3

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.3",
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
  }}