@vaadin/field-base
Advanced tools
Comparing version 23.2.0-alpha4 to 23.2.0-alpha5
{ | ||
"name": "@vaadin/field-base", | ||
"version": "23.2.0-alpha4", | ||
"version": "23.2.0-alpha5", | ||
"publishConfig": { | ||
@@ -35,3 +35,3 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.2.0-alpha4", | ||
"@vaadin/component-base": "23.2.0-alpha5", | ||
"lit": "^2.0.0" | ||
@@ -44,3 +44,3 @@ }, | ||
}, | ||
"gitHead": "cbf5f1d0f38ac9b81c65cf9ef5660182e176e598" | ||
"gitHead": "c6247fd741d61096d75a71feda4a1faf88b6f0ce" | ||
} |
@@ -8,2 +8,3 @@ /** | ||
import { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js'; | ||
import { isElementFocused } from '@vaadin/component-base/src/focus-utils.js'; | ||
import { DelegateStateMixin } from './delegate-state-mixin.js'; | ||
@@ -48,3 +49,11 @@ import { InputMixin } from './input-mixin.js'; | ||
_onChange(event) { | ||
this._toggleChecked(event.target.checked); | ||
const input = event.target; | ||
this._toggleChecked(input.checked); | ||
// Clicking the checkbox or radio-button in Safari | ||
// does not make it focused, so we do it manually. | ||
if (!isElementFocused(input)) { | ||
input.focus(); | ||
} | ||
} | ||
@@ -51,0 +60,0 @@ |
117355
3265
+ Added@vaadin/component-base@23.2.0-alpha5(transitive)
- Removed@vaadin/component-base@23.2.0-alpha4(transitive)