fix(text_input): only set read only if the text input is editable

This commit is contained in:
Ashley Wulber 2025-03-20 19:17:53 -04:00
parent 91eae67dd5
commit 421e349cb9
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -1531,7 +1531,9 @@ pub fn update<'a, Message: Clone + 'static>(
state.dragging_state = None;
state.is_pasting = None;
state.keyboard_modifiers = keyboard::Modifiers::default();
state.is_read_only = true;
if is_editable {
state.is_read_only = true;
}
// Ensure clicks outside emit the toggle edit message.
if let Some(on_toggle_edit) = on_toggle_edit {