Skip to content

Commit

Permalink
fix: disabled button tap can callback
Browse files Browse the repository at this point in the history
  • Loading branch information
rayhomie committed Aug 28, 2024
1 parent cab35d5 commit d9e6199
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiled/wechat/src/Stepper/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
data-mode="minus"
disabled="{{disabled || mixin.value !== '' && mixin.value !== undefined && mixin.value <= min}}"
bind:tap="onTap"
onDisabledTap="onDisabledTap"
bind:disabledtap="onDisabledTap"
></ant-button>
<view class="ant-stepper-input-wrap">
<view
Expand Down Expand Up @@ -43,6 +43,6 @@
data-mode="add"
disabled="{{disabled || mixin.value !== '' && mixin.value !== undefined && mixin.value >= max}}"
bind:tap="onTap"
onDisabledTap="onDisabledTap"
bind:disabledtap="onDisabledTap"
></ant-button>
</view>
3 changes: 3 additions & 0 deletions scripts/axml/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export const wechatCustomMapping = {
'checkbox-group': {
onChange: 'bindchange',
},
'ant-button': {
onDisabledTap: 'bind:disabledtap',
},
'ant-textarea': {
onChange: 'bind:change',
},
Expand Down

0 comments on commit d9e6199

Please sign in to comment.