Commit fa9e0b0
authored
fix: preserve date picker state when switching back from unlimited (#1904)
When switching to unlimited and back to an accrual method, the custom
reset date picker wasn't showing because the useEffect aggressively
cleared resetDateType. Now the effect returns early for unlimited,
preserving form state so the date picker restores on switch-back.1 parent 962b8a4 commit fa9e0b0
1 file changed
Lines changed: 3 additions & 6 deletions
File tree
- src/components/TimeOff/TimeOffManagement/PolicyConfigurationForm
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 92 | | |
96 | 93 | | |
97 | 94 | | |
| |||
0 commit comments