vira 31.24.0 → 31.24.1

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.
@@ -225,7 +225,15 @@ export const ViraSelect = defineViraElement()({
225
225
  /** `showPicker` is not in Safari. */
226
226
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
227
227
  if (selectElement.showPicker) {
228
- selectElement.showPicker();
228
+ try {
229
+ selectElement.showPicker();
230
+ }
231
+ catch {
232
+ /**
233
+ * Chromium throws `NotAllowedError` when `showPicker` runs without
234
+ * transient user activation; the picker just won't open.
235
+ */
236
+ }
229
237
  }
230
238
  }),
231
239
  listenTo(host, 'click', (event) => {
@@ -238,7 +246,15 @@ export const ViraSelect = defineViraElement()({
238
246
  /** `showPicker` is not in Safari. */
239
247
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
240
248
  if (selectElement.showPicker) {
241
- selectElement.showPicker();
249
+ try {
250
+ selectElement.showPicker();
251
+ }
252
+ catch {
253
+ /**
254
+ * Chromium throws `NotAllowedError` when `showPicker` runs without
255
+ * transient user activation; the picker just won't open.
256
+ */
257
+ }
242
258
  }
243
259
  }),
244
260
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "31.24.0",
3
+ "version": "31.24.1",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",