mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
misc changes 3
This commit is contained in:
@ -485,7 +485,7 @@ export class DateTime extends BaseInput<DateTimeData> implements AfterContentIni
|
||||
* @hidden
|
||||
*/
|
||||
open() {
|
||||
if (this._isFocus || this._disabled) {
|
||||
if (this.isFocus() || this._disabled) {
|
||||
return;
|
||||
}
|
||||
console.debug('datetime, open picker');
|
||||
|
@ -7,7 +7,7 @@ import { App } from '../app/app';
|
||||
import { Config } from '../../config/config';
|
||||
import { Form } from '../../util/form';
|
||||
import { BaseInput } from '../../util/base-input';
|
||||
import { isCheckedProperty, isTrueProperty, isBlank, deepCopy, deepEqual } from '../../util/util';
|
||||
import { isCheckedProperty, isTrueProperty, deepCopy, deepEqual } from '../../util/util';
|
||||
import { Item } from '../item/item';
|
||||
import { NavController } from '../../navigation/nav-controller';
|
||||
import { Option } from '../option/option';
|
||||
@ -223,7 +223,7 @@ export class Select extends BaseInput<string[]> implements AfterViewInit, OnDest
|
||||
* Open the select interface.
|
||||
*/
|
||||
open() {
|
||||
if (this._isFocus || this._disabled) {
|
||||
if (this.isFocus() || this._disabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -372,9 +372,6 @@ export class Select extends BaseInput<string[]> implements AfterViewInit, OnDest
|
||||
}
|
||||
|
||||
_inputNormalize(val: any): string[] {
|
||||
if (isBlank(val)) {
|
||||
return [];
|
||||
}
|
||||
if (Array.isArray(val)) {
|
||||
return val;
|
||||
}
|
||||
|
Reference in New Issue
Block a user