Commit 4d25843
fix(brush-select): change onSelect callback return type from state object to void (#7348)
- Changed onSelect callback return type from Record<ID, State | State[]> to void
- Updated callback invocation to not expect return value
- Fixed linting issue by changing states variable to const
- Resolves issue where onSelect callback was incorrectly expected to return modified states
Fixes #7303
Co-authored-by: Aaron <[email protected]>1 parent e8d95bc commit 4d25843
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
249 | | - | |
| 248 | + | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
| |||
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | | - | |
| 276 | + | |
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
| |||
0 commit comments