fix(action-sheet): add scrolling for options

This commit is contained in:
Brandy Carney
2017-10-06 05:45:49 -04:00
committed by Brandy Carney
parent 4f571c2da1
commit 17cdce101e
7 changed files with 258 additions and 30 deletions

View File

@ -193,11 +193,6 @@ export class Select {
resetInterface(ev: Event): string {
let selectInterface = this.interface;
if (selectInterface === 'action-sheet' && this.options.length > 6) {
console.warn('Interface cannot be "' + selectInterface + '" with more than 6 options. Using the "alert" interface instead.');
selectInterface = 'alert';
}
if ((selectInterface === 'action-sheet' || selectInterface === 'popover') && this.multiple) {
console.warn('Interface cannot be "' + selectInterface + '" with a multi-value select. Using the "alert" interface instead.');
selectInterface = 'alert';