Socket
Socket
Sign inDemoInstall

@vaadin/field-base

Package Overview
Dependencies
Maintainers
19
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/field-base - npm Package Compare versions

Comparing version 22.0.1 to 22.0.2

6

package.json
{
"name": "@vaadin/field-base",
"version": "22.0.1",
"version": "22.0.2",
"publishConfig": {

@@ -34,3 +34,3 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "^22.0.1",
"@vaadin/component-base": "^22.0.2",
"lit": "^2.0.0"

@@ -43,3 +43,3 @@ },

},
"gitHead": "2b0a2bff0369d6020f7cc33ad35506aa2d1f6f68"
"gitHead": "df21370c4a655a38eac11f79686021ab3b0887ad"
}

@@ -372,10 +372,16 @@ /**

_invalidChanged(invalid) {
// Error message ID needs to be dynamically added / removed based on the validity
// Otherwise assistive technologies would announce the error, even if we hide it.
if (invalid) {
this._fieldAriaController.setErrorId(this._errorId);
} else {
this._fieldAriaController.setErrorId(null);
}
// This timeout is needed to prevent NVDA from announcing the error message twice:
// 1. Once adding the `[role=alert]` attribute by the `_updateErrorMessage` method (OK).
// 2. Once linking the error ID with the ARIA target here (unwanted).
// Related issue: https://github.com/vaadin/web-components/issues/3061.
setTimeout(() => {
// Error message ID needs to be dynamically added / removed based on the validity
// Otherwise assistive technologies would announce the error, even if we hide it.
if (invalid) {
this._fieldAriaController.setErrorId(this._errorId);
} else {
this._fieldAriaController.setErrorId(null);
}
});
}
};

@@ -6,3 +6,3 @@ /**

*/
import { SlotController } from './slot-controller.js';
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';

@@ -12,2 +12,2 @@ /**

*/
export class InputController implements SlotController {}
export class InputController extends SlotController {}

@@ -6,3 +6,3 @@ /**

*/
import { SlotController } from './slot-controller.js';
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';

@@ -14,3 +14,4 @@ /**

constructor(host, callback) {
super(host, [
super(
host,
'input',

@@ -35,4 +36,4 @@ () => document.createElement('input'),

}
]);
);
}
}

@@ -6,3 +6,3 @@ /**

*/
import { SlotController } from './slot-controller.js';
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';

@@ -12,2 +12,2 @@ /**

*/
export class TextAreaController implements SlotController {}
export class TextAreaController extends SlotController {}

@@ -6,3 +6,3 @@ /**

*/
import { SlotController } from './slot-controller.js';
import { SlotController } from '@vaadin/component-base/src/slot-controller.js';

@@ -14,3 +14,4 @@ /**

constructor(host, callback) {
super(host, [
super(
host,
'textarea',

@@ -38,4 +39,4 @@ () => document.createElement('textarea'),

}
]);
);
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc