MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / exitInputMode

Method exitInputMode

core/src/components/picker/picker.tsx:287–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285 */
286 @Method()
287 async exitInputMode() {
288 const { inputEl, useInputMode } = this;
289 if (!useInputMode || !inputEl) {
290 return;
291 }
292
293 this.useInputMode = false;
294 this.inputModeColumn = undefined;
295 inputEl.blur();
296 inputEl.value = '';
297
298 if (this.destroyKeypressListener) {
299 this.destroyKeypressListener();
300 this.destroyKeypressListener = undefined;
301 }
302
303 this.emitInputModeChange();
304 }
305
306 private onKeyPress = (ev: KeyboardEvent) => {
307 const { inputEl } = this;

Callers 4

PickerClass · 0.95
renderMethod · 0.95
scrollCallbackMethod · 0.80
PickerColumnClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected