MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / emitInputChange

Method emitInputChange

core/src/components/input/input.tsx:547–554  ·  view source on GitHub ↗

* Emits an `ionInput` event.

(event?: Event)

Source from the content-addressed store, hash-verified

545 * Emits an `ionInput` event.
546 */
547 private emitInputChange(event?: Event) {
548 const { value } = this;
549
550 // Checks for both null and undefined values
551 const newValue = value == null ? value : value.toString();
552
553 this.ionInput.emit({ value: newValue, event });
554 }
555
556 private shouldClearOnEdit() {
557 const { type, clearOnEdit } = this;

Callers 2

InputClass · 0.95
checkClearOnEditMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected