feat(all): add all autocomplete values to input and searchbar (#21297)

This commit is contained in:
Manu MA
2020-05-22 15:23:44 +02:00
committed by GitHub
parent 32906048a4
commit 4fd7c0cc5a
7 changed files with 72 additions and 61 deletions

View File

@ -1,7 +1,7 @@
import { Build, Component, ComponentInterface, Element, Event, EventEmitter, Host, Method, Prop, State, Watch, h } from '@stencil/core';
import { getIonMode } from '../../global/ionic-global';
import { Color, InputChangeEventDetail, StyleEventDetail, TextFieldTypes } from '../../interface';
import { AutocompleteTypes, Color, InputChangeEventDetail, StyleEventDetail, TextFieldTypes } from '../../interface';
import { debounceEvent, findItemLabel } from '../../utils/helpers';
import { createColorClasses } from '../../utils/theme';
@ -47,7 +47,7 @@ export class Input implements ComponentInterface {
/**
* Indicates whether the value of the control can be automatically completed by the browser.
*/
@Prop() autocomplete: 'on' | 'off' = 'off';
@Prop() autocomplete: AutocompleteTypes = 'off';
/**
* Whether auto correction should be enabled when the user is entering/editing the text value.