kopia lustrzana https://github.com/shoelace-style/shoelace
Remove slValid/slInvalid events
rodzic
6e1ccdeb9a
commit
ba7242367a
|
@ -1984,14 +1984,6 @@ declare namespace LocalJSX {
|
|||
* Emitted when the control receives input.
|
||||
*/
|
||||
"onSlInput"?: (event: CustomEvent<any>) => void;
|
||||
/**
|
||||
* Emitted when the value changes and the control is invalid.
|
||||
*/
|
||||
"onSlInvalid"?: (event: CustomEvent<any>) => void;
|
||||
/**
|
||||
* Emitted when the value changes and the control is valid.
|
||||
*/
|
||||
"onSlValid"?: (event: CustomEvent<any>) => void;
|
||||
/**
|
||||
* A pattern to validate input against.
|
||||
*/
|
||||
|
@ -2444,14 +2436,6 @@ declare namespace LocalJSX {
|
|||
* Emitted when the control receives input.
|
||||
*/
|
||||
"onSlInput"?: (event: CustomEvent<any>) => void;
|
||||
/**
|
||||
* Emitted when the value changes and the control is invalid.
|
||||
*/
|
||||
"onSlInvalid"?: (event: CustomEvent<any>) => void;
|
||||
/**
|
||||
* Emitted when the value changes and the control is valid.
|
||||
*/
|
||||
"onSlValid"?: (event: CustomEvent<any>) => void;
|
||||
/**
|
||||
* The textarea's placeholder text.
|
||||
*/
|
||||
|
|
|
@ -120,11 +120,6 @@ export class Input {
|
|||
this.invalid = !this.input.checkValidity();
|
||||
}
|
||||
|
||||
@Watch('invalid')
|
||||
handleInvalidChange() {
|
||||
this.invalid ? this.slInvalid.emit() : this.slValid.emit();
|
||||
}
|
||||
|
||||
/** Emitted when the control's value changes. */
|
||||
@Event() slChange: EventEmitter;
|
||||
|
||||
|
@ -140,12 +135,6 @@ export class Input {
|
|||
/** Emitted when the control loses focus. */
|
||||
@Event() slBlur: EventEmitter;
|
||||
|
||||
/** Emitted when the value changes and the control is valid. */
|
||||
@Event() slValid: EventEmitter;
|
||||
|
||||
/** Emitted when the value changes and the control is invalid. */
|
||||
@Event() slInvalid: EventEmitter;
|
||||
|
||||
connectedCallback() {
|
||||
this.handleChange = this.handleChange.bind(this);
|
||||
this.handleInput = this.handleInput.bind(this);
|
||||
|
|
|
@ -112,17 +112,6 @@ export class Textarea {
|
|||
this.invalid = !this.textarea.checkValidity();
|
||||
}
|
||||
|
||||
@Watch('invalid')
|
||||
handleInvalidChange() {
|
||||
this.invalid ? this.slInvalid.emit() : this.slValid.emit();
|
||||
}
|
||||
|
||||
/** Emitted when the value changes and the control is valid. */
|
||||
@Event() slValid: EventEmitter;
|
||||
|
||||
/** Emitted when the value changes and the control is invalid. */
|
||||
@Event() slInvalid: EventEmitter;
|
||||
|
||||
connectedCallback() {
|
||||
this.handleChange = this.handleChange.bind(this);
|
||||
this.handleInput = this.handleInput.bind(this);
|
||||
|
|
Ładowanie…
Reference in New Issue