mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(select): using BaseInput correctly + unit tests
This commit is contained in:
@@ -126,7 +126,7 @@ export class BaseInput<T> extends Ion implements CommonInput<T> {
|
||||
const normalized = this._inputNormalize(val);
|
||||
const shouldUpdate = this._inputShouldChange(normalized);
|
||||
if (shouldUpdate) {
|
||||
console.debug('BaseInput: value has changed:', val);
|
||||
console.debug('BaseInput: value changed:', normalized, this);
|
||||
this._value = normalized;
|
||||
this._inputCheckHasValue(normalized);
|
||||
this._inputUpdated();
|
||||
|
||||
@@ -52,6 +52,7 @@ export interface TestConfig {
|
||||
export function commonInputTest<T>(input: BaseInput<T>, config: TestConfig) {
|
||||
// TODO test form register/deregister
|
||||
// TODO test item classes
|
||||
// TODO test disable
|
||||
|
||||
testInput(input, config, false);
|
||||
input.ngAfterViewInit();
|
||||
|
||||
Reference in New Issue
Block a user