fix the bug of search textinput

Signed-off-by: xuchangzhou <xuzhangzhou@huawei.com>
This commit is contained in:
xuchangzhou 2022-02-11 14:31:15 +08:00
parent 0a6f5930dd
commit 0e97d07b7a

View File

@ -1,3 +1,4 @@
// @ts-nocheck
/**
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
@ -41,7 +42,7 @@ export default struct SearchHeader {
// text input
Stack({ alignContent: Alignment.End }) {
TextInput({ placeholder: this.placeholder, text: this.inputKeyword })
TextInput({ placeholder: this.placeholder })
.margin({
left: $r('app.float.search_input_horizontal_margin'),
right: $r('app.float.search_input_horizontal_margin')