Remove slValid/slInvalid events

pull/200/head
Cory LaViska 2020-08-28 17:37:36 -04:00
rodzic 6e1ccdeb9a
commit ba7242367a
3 zmienionych plików z 0 dodań i 38 usunięć

16
src/components.d.ts vendored
Wyświetl plik

@ -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.
*/

Wyświetl plik

@ -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);

Wyświetl plik

@ -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);