Commit ca4f96a
committed
Fix dynamic select storybook test failure
- Modified `useOnFormValueChange` hook to correctly track `prevValue` using `useRef`.
- Updated `AutoCalculation` story to use `waitFor` instead of `setTimeout` to prevent CI race conditions.
- Updated `selectRadixOption` test helper to blur the trigger after selection (click on body) to simulate "clicking off" and ensure onBlur events fire.1 parent 50eb85d commit ca4f96a
1 file changed
Lines changed: 2 additions & 4 deletions
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
| 350 | + | |
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | | - | |
360 | | - | |
| 358 | + | |
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
| |||
0 commit comments