@vaadin/date-picker 25.2.10 → 25.2.11
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 +13 -13
- package/src/vaadin-date-picker-mixin.js +7 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/date-picker",
|
|
3
|
-
"version": "25.2.
|
|
3
|
+
"version": "25.2.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "~25.2.
|
|
39
|
-
"@vaadin/button": "~25.2.
|
|
40
|
-
"@vaadin/component-base": "~25.2.
|
|
41
|
-
"@vaadin/field-base": "~25.2.
|
|
42
|
-
"@vaadin/input-container": "~25.2.
|
|
43
|
-
"@vaadin/overlay": "~25.2.
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "~25.2.
|
|
38
|
+
"@vaadin/a11y-base": "~25.2.11",
|
|
39
|
+
"@vaadin/button": "~25.2.11",
|
|
40
|
+
"@vaadin/component-base": "~25.2.11",
|
|
41
|
+
"@vaadin/field-base": "~25.2.11",
|
|
42
|
+
"@vaadin/input-container": "~25.2.11",
|
|
43
|
+
"@vaadin/overlay": "~25.2.11",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "~25.2.11",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/aura": "~25.2.
|
|
49
|
-
"@vaadin/chai-plugins": "~25.2.
|
|
50
|
-
"@vaadin/test-runner-commands": "~25.2.
|
|
48
|
+
"@vaadin/aura": "~25.2.11",
|
|
49
|
+
"@vaadin/chai-plugins": "~25.2.11",
|
|
50
|
+
"@vaadin/test-runner-commands": "~25.2.11",
|
|
51
51
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
52
|
-
"@vaadin/vaadin-lumo-styles": "~25.2.
|
|
52
|
+
"@vaadin/vaadin-lumo-styles": "~25.2.11",
|
|
53
53
|
"sinon": "^22.0.0"
|
|
54
54
|
},
|
|
55
55
|
"customElements": "custom-elements.json",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"web-types.json",
|
|
58
58
|
"web-types.lit.json"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "6b08306ffb11c5c7665b0af8050e4368e0c44a5a"
|
|
61
61
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { hideOthers } from '@vaadin/a11y-base/src/aria-hidden.js';
|
|
7
7
|
import { DelegateFocusMixin } from '@vaadin/a11y-base/src/delegate-focus-mixin.js';
|
|
8
|
-
import { isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
|
|
8
|
+
import { isElementFocused, isKeyboardActive } from '@vaadin/a11y-base/src/focus-utils.js';
|
|
9
9
|
import { KeyboardMixin } from '@vaadin/a11y-base/src/keyboard-mixin.js';
|
|
10
10
|
import { isIOS } from '@vaadin/component-base/src/browser-utils.js';
|
|
11
11
|
import { I18nMixin } from '@vaadin/component-base/src/i18n-mixin.js';
|
|
@@ -989,6 +989,12 @@ export const DatePickerMixin = (subclass) =>
|
|
|
989
989
|
if (!this.value && !this._keyboardActive) {
|
|
990
990
|
this._requestValidation();
|
|
991
991
|
}
|
|
992
|
+
|
|
993
|
+
// Focusout events while closing arrive with `opened` still true and keep the focused state.
|
|
994
|
+
// Clear it here unless focus was restored to the input, as at a wide viewport or on Esc.
|
|
995
|
+
if (!this.inputElement || !isElementFocused(this.inputElement)) {
|
|
996
|
+
this._setFocused(false);
|
|
997
|
+
}
|
|
992
998
|
}
|
|
993
999
|
|
|
994
1000
|
/** @private */
|
package/web-types.json
CHANGED