Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
孙凯
7 years ago
Commit
8885999e3ef9fc1c22c658ca85cd6c8429f41108
1 parent
78b72100
修复 输入框 clear 失效的bug review by daiqiang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
js/guang/components/detail/Detail.js
js/guang/components/detail/Detail.js
View file @
8885999
...
...
@@ -118,7 +118,16 @@ export default class Detail extends Component {
relayToUsername
=
''
;
}
this
.
props
.
onSubmitForComment
&&
this
.
props
.
onSubmitForComment
(
content
,
replyTos
);
this
.
refs
.
textInput
.
clear
();
if
(
Platform
.
OS
===
'ios'
)
{
this
.
refs
.
textInput
.
setNativeProps
({
text
:
' '
});
setTimeout
(()
=>
{
this
.
refs
.
textInput
.
setNativeProps
({
text
:
''
});
});
}
this
.
setState
({
replyTo
:
0
,
relayToUsername
:
''
});
}
...
...
Please
register
or
login
to post a comment