@vaadin/field-base
Advanced tools
Comparing version 24.5.6 to 24.5.7
{ | ||
"name": "@vaadin/field-base", | ||
"version": "24.5.6", | ||
"version": "24.5.7", | ||
"publishConfig": { | ||
@@ -35,12 +35,12 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "~24.5.6", | ||
"@vaadin/component-base": "~24.5.6", | ||
"@vaadin/a11y-base": "~24.5.7", | ||
"@vaadin/component-base": "~24.5.7", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "~24.5.6", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
"@vaadin/chai-plugins": "~24.5.7", | ||
"@vaadin/testing-helpers": "^1.1.0", | ||
"sinon": "^18.0.0" | ||
}, | ||
"gitHead": "2c20ec16149e8016e0733a80e349231da13660bc" | ||
"gitHead": "f04f4777d633ebf85368eb36545105b0e5b93731" | ||
} |
@@ -92,3 +92,3 @@ /** | ||
if (this.clearButtonVisible && !!this.value) { | ||
if (this.clearButtonVisible && !!this.value && !this.readonly) { | ||
event.stopPropagation(); | ||
@@ -95,0 +95,0 @@ this._onClearAction(); |
@@ -6,2 +6,3 @@ /** | ||
*/ | ||
import { announce } from '@vaadin/a11y-base/src/announce.js'; | ||
import { SlotChildObserveController } from '@vaadin/component-base/src/slot-child-observe-controller.js'; | ||
@@ -112,8 +113,6 @@ | ||
// Role alert will make the error message announce immediately | ||
// as the field becomes invalid | ||
if (hasError) { | ||
errorNode.setAttribute('role', 'alert'); | ||
} else { | ||
errorNode.removeAttribute('role'); | ||
// Assertive mode ensures VoiceOver reads | ||
// the error message on commit with Enter. | ||
announce(errorMessage, { mode: 'assertive' }); | ||
} | ||
@@ -120,0 +119,0 @@ } |
88405
2301
Updated@vaadin/a11y-base@~24.5.7