diff --git a/pages/component/input/input.uvue b/pages/component/input/input.uvue index 315f29a023f79eb0b2a67432756b335edaf004dc..76042e2ff02a09a4e4a7c5585ef6404214e83c60 100644 --- a/pages/component/input/input.uvue +++ b/pages/component/input/input.uvue @@ -276,11 +276,11 @@ this.onMaxLengthInputValue = event.detail.value }, setCursor: function (cursor : number) { - (this.$refs['input'] as Element).focus(); + (this.$refs['input'] as UniInputElement).focus(); this.cursor = cursor; }, setSelection: function (selectionStart : number, selectionEnd : number) { - (this.$refs['input2'] as Element).focus(); + (this.$refs['input2'] as UniInputElement).focus(); this.selectionStart = selectionStart; this.selectionEnd = selectionEnd; },