Commit 351a182
committed
fix(content): prevent text auto-selection in filter dialog
Fixes an issue where the search text in the filter dialog would become automatically selected after typing. This was caused by unnecessarily updating the `TextEditingController`'s text on every state change.
The fix ensures the controller is only updated if its text differs from the BLoC state, preserving the user's cursor position and selection.1 parent a441605 commit 351a182
File tree
1 file changed
+5
-1
lines changed- lib/content_management/widgets/filter_dialog
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
0 commit comments