Skip to content

Commit

Permalink
fix(search): catch tap event when trigger clear (#2139)
Browse files Browse the repository at this point in the history
* fix(search): catch tap event when triiger clear

* test(search): update snapshot
  • Loading branch information
LeeJim authored Jun 29, 2023
1 parent 63142ee commit c0cefc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/search/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports[`search Props :base 1`] = `
<wx-view
ariaRole="button"
class="t-search__search-action t-class-action"
bind:tap="onActionClick"
catch:tap="onActionClick"
>
提交
Expand Down
4 changes: 2 additions & 2 deletions src/search/search.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<view
wx:if="{{value !=='' && clearable}}"
class="{{classPrefix}}__clear {{prefix}}-class-clear"
bind:tap="handleClear"
catch:tap="handleClear"
aria-role="button"
aria-label="清除"
>
Expand All @@ -43,7 +43,7 @@
<view
wx:if="{{action}}"
class="{{classPrefix}}__search-action {{prefix}}-class-action"
bindtap="onActionClick"
catch:tap="onActionClick"
aria-role="button"
>
{{action}}
Expand Down

0 comments on commit c0cefc4

Please sign in to comment.