mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
test(): remove initial waitFor (#19217)
This commit is contained in:
@ -169,21 +169,10 @@ export class Range implements ComponentInterface {
|
||||
*/
|
||||
@Event() ionBlur!: EventEmitter<void>;
|
||||
|
||||
async connectedCallback() {
|
||||
connectedCallback() {
|
||||
this.updateRatio();
|
||||
this.debounceChanged();
|
||||
this.emitStyle();
|
||||
|
||||
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||
el: this.rangeSlider!,
|
||||
gestureName: 'range',
|
||||
gesturePriority: 100,
|
||||
threshold: 0,
|
||||
onStart: ev => this.onStart(ev),
|
||||
onMove: ev => this.onMove(ev),
|
||||
onEnd: ev => this.onEnd(ev),
|
||||
});
|
||||
this.gesture.setDisabled(this.disabled);
|
||||
this.disabledChanged();
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
@ -193,6 +182,22 @@ export class Range implements ComponentInterface {
|
||||
}
|
||||
}
|
||||
|
||||
async componentDidLoad() {
|
||||
const rangeSlider = this.rangeSlider;
|
||||
if (rangeSlider) {
|
||||
this.gesture = (await import('../../utils/gesture')).createGesture({
|
||||
el: rangeSlider,
|
||||
gestureName: 'range',
|
||||
gesturePriority: 100,
|
||||
threshold: 0,
|
||||
onStart: ev => this.onStart(ev),
|
||||
onMove: ev => this.onMove(ev),
|
||||
onEnd: ev => this.onEnd(ev),
|
||||
});
|
||||
this.gesture.setDisabled(this.disabled);
|
||||
}
|
||||
}
|
||||
|
||||
private handleKeyboard = (knob: KnobName, isIncrease: boolean) => {
|
||||
let step = this.step;
|
||||
step = step > 0 ? step : 1;
|
||||
|
Reference in New Issue
Block a user