Replies: 1 comment 1 reply
-
It seems like here we aren't accounting for the value being set externally here. react-spectrum/packages/@react-stately/datepicker/src/useDateFieldState.ts Lines 239 to 246 in 84a1f0f |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
recently I've been working on custom
Datepicker
which would work with Calendar placed in container which doesn't block interactions with other elements on the page, and which is visible when focused on an input.However I stumbled on problem with updating state of input fields: for some reason if input is clear, without any value, it won't update value, when I try to invoke
state.setValue
destructured fromuseDateFieldState
from button/RAC Calendar. Here is codesandbox with reproduction, and below code I wrote for this.To reproduce, try click button with
set date
label. Despite an action, input will not update.It works fine, if first value is set manually, and then button is used.
Is there a mistake in the example? Or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions