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

Method debounceChanged

core/src/components/input/input.tsx:157–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156 @Watch('debounce')
157 protected debounceChanged() {
158 const { ionInput, debounce, originalIonInput } = this;
159
160 /**
161 * If debounce is undefined, we have to manually revert the ionInput emitter in case
162 * debounce used to be set to a number. Otherwise, the event would stay debounced.
163 */
164 this.ionInput = debounce === undefined ? originalIonInput ?? ionInput : debounceEvent(ionInput, debounce);
165 }
166
167 /**
168 * If `true`, the user cannot interact with the input.

Callers 2

connectedCallbackMethod · 0.95
componentDidLoadMethod · 0.95

Calls 1

debounceEventFunction · 0.90

Tested by

no test coverage detected