@vaadin/select 24.4.0-alpha17 → 24.4.0-alpha19

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/README.md CHANGED
@@ -4,7 +4,7 @@ A web component for selecting a single value from a list of options presented in
4
4
 
5
5
  [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/select)
6
6
 
7
- [![npm version](https://badgen.net/npm/v/@vaadin/vaadin-select)](https://www.npmjs.com/package/@vaadin/vaadin-select)
7
+ [![npm version](https://badgen.net/npm/v/@vaadin/select)](https://www.npmjs.com/package/@vaadin/select)
8
8
 
9
9
  ```html
10
10
  <vaadin-select label="Sort by"></vaadin-select>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/select",
3
- "version": "24.4.0-alpha17",
3
+ "version": "24.4.0-alpha19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -39,18 +39,18 @@
39
39
  "dependencies": {
40
40
  "@open-wc/dedupe-mixin": "^1.3.0",
41
41
  "@polymer/polymer": "^3.2.0",
42
- "@vaadin/a11y-base": "24.4.0-alpha17",
43
- "@vaadin/button": "24.4.0-alpha17",
44
- "@vaadin/component-base": "24.4.0-alpha17",
45
- "@vaadin/field-base": "24.4.0-alpha17",
46
- "@vaadin/input-container": "24.4.0-alpha17",
47
- "@vaadin/item": "24.4.0-alpha17",
48
- "@vaadin/list-box": "24.4.0-alpha17",
49
- "@vaadin/lit-renderer": "24.4.0-alpha17",
50
- "@vaadin/overlay": "24.4.0-alpha17",
51
- "@vaadin/vaadin-lumo-styles": "24.4.0-alpha17",
52
- "@vaadin/vaadin-material-styles": "24.4.0-alpha17",
53
- "@vaadin/vaadin-themable-mixin": "24.4.0-alpha17",
42
+ "@vaadin/a11y-base": "24.4.0-alpha19",
43
+ "@vaadin/button": "24.4.0-alpha19",
44
+ "@vaadin/component-base": "24.4.0-alpha19",
45
+ "@vaadin/field-base": "24.4.0-alpha19",
46
+ "@vaadin/input-container": "24.4.0-alpha19",
47
+ "@vaadin/item": "24.4.0-alpha19",
48
+ "@vaadin/list-box": "24.4.0-alpha19",
49
+ "@vaadin/lit-renderer": "24.4.0-alpha19",
50
+ "@vaadin/overlay": "24.4.0-alpha19",
51
+ "@vaadin/vaadin-lumo-styles": "24.4.0-alpha19",
52
+ "@vaadin/vaadin-material-styles": "24.4.0-alpha19",
53
+ "@vaadin/vaadin-themable-mixin": "24.4.0-alpha19",
54
54
  "lit": "^3.0.0"
55
55
  },
56
56
  "devDependencies": {
@@ -62,5 +62,5 @@
62
62
  "web-types.json",
63
63
  "web-types.lit.json"
64
64
  ],
65
- "gitHead": "eb6b4dac66be1c0ddc77757bed5f84a6d355e5cf"
65
+ "gitHead": "5fad5eb53de7da69c1a19776a11ba74ceba27ea0"
66
66
  }
@@ -259,8 +259,10 @@ export const SelectBaseMixin = (superClass) =>
259
259
  menuElement.addEventListener('keydown', (e) => this._onKeyDownInside(e), true);
260
260
  menuElement.addEventListener(
261
261
  'click',
262
- () => {
263
- this.__dispatchChangePending = true;
262
+ (e) => {
263
+ const value = e.target.value;
264
+ this.__dispatchChangePending = value !== undefined && value !== this.value;
265
+ this.opened = false;
264
266
  },
265
267
  true,
266
268
  );
@@ -523,7 +525,6 @@ export const SelectBaseMixin = (superClass) =>
523
525
  this._selectedChanging = true;
524
526
  this.value = selected.value || '';
525
527
  if (this.__dispatchChangePending) {
526
- this.opened = false;
527
528
  this.__dispatchChange();
528
529
  }
529
530
  delete this._selectedChanging;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import './vaadin-select-styles.js';
7
- import '../../src/vaadin-lit-select.js';
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import '@vaadin/input-container/theme/lumo/vaadin-input-container-styles.js';
7
- import '@vaadin/vaadin-lumo-styles/sizing.js';
8
- import '@vaadin/vaadin-lumo-styles/style.js';
9
- import '@vaadin/vaadin-lumo-styles/font-icons.js';
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import './vaadin-select-styles.js';
7
- import '../../src/vaadin-select.js';
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import './vaadin-select-styles.js';
7
- import '../../src/vaadin-lit-select.js';
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import '@vaadin/input-container/theme/material/vaadin-input-container-styles.js';
7
- import '@vaadin/vaadin-material-styles/font-icons.js';
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import './vaadin-select-styles.js';
7
- import '../../src/vaadin-select.js';