Skip to content

Commit 72d0fe5

Browse files
committed
fix: fix searchbar cancel focus
1 parent 5f1160e commit 72d0fe5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/searchbar/__test__/__snapshots__/searchbar.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ exports[`searchbar basic 6`] = `
376376
/>
377377
<wx-input
378378
class="weui-search-bar__input"
379-
focus="{{true}}"
379+
focus="{{false}}"
380380
placeholder="搜索"
381381
type="text"
382382
value=""

src/searchbar/searchbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Component({
5959
// @ts-ignore
6060
this.setData({
6161
value: '',
62-
focus: true,
62+
focus: false,
6363
result: []
6464
})
6565
// @ts-ignore

0 commit comments

Comments
 (0)