Skip to content

Commit 004c566

Browse files
author
ci_lynx
committed
[BugFix][Input] Fixed a bug where input was not possible after resetting readonly.
The inability to input is due to the fact that when readonly was changed from false to true, editing mode was not enabled. issue: m-6797203644
1 parent 35d8683 commit 004c566

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clay/ui/component/editable/editable_view.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,9 @@ void EditableView::SetReadOnly(bool read_only) {
10131013
QuitEditing();
10141014
}
10151015
readonly_ = read_only;
1016+
if (!readonly_ && is_focused_) {
1017+
BeginEditing();
1018+
}
10161019
}
10171020

10181021
float EditableView::LayoutWidth() {

0 commit comments

Comments
 (0)