Commit 6bbe6cc
authored
Fix text filter pasting behaviour (#4300)
When pasting into a text filter in the Lookout UI, we trim the pasted text to remove whitespace at the start or end. Currently, the pasted text replaces the entire contents of the text box. This fix prevents the existing contents of the text box from being overwritten - rahter, it respects the cursor any selected text.1 parent d443ddb commit 6bbe6cc
File tree
1 file changed
+11
-1
lines changed- internal/lookoutui/src/components/lookout
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
219 | 229 | | |
220 | 230 | | |
221 | 231 | | |
| |||
0 commit comments