Skip to content

Commit

Permalink
fix: 修复类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzejia authored and liuzejia committed Jun 19, 2024
1 parent f6dc9a9 commit 32f1f7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default struct TaroInput {

eventHandler(event, 'focus', this.node)
})
.enableKeyboardOnFocus(typeof this.node._attrs?.enableKeyboardOnFocus === 'undefined' ? true : this.node._attrs.enableKeyboardOnFocus)
.enableKeyboardOnFocus(typeof (this.node._attrs as TaroAny)?.enableKeyboardOnFocus === 'undefined' ? true : (this.node._attrs as TaroAny).enableKeyboardOnFocus)
.onAreaChange(getComponentEventCallback(this.node, AREA_CHANGE_EVENT_NAME, (res: TaroAny) => {
if (this.node) {
this.node._nodeInfo.areaInfo = res[1]
Expand Down

0 comments on commit 32f1f7e

Please sign in to comment.