You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem when clearing the time input using backspace. In Safari the old value still persists in the DOM, even on refresh, even though it's no longer present in the dataset (I presume it's stored in the revisions somewhere?)
The input works normally in other browsers. I haven't been able to find anything about this so I assume it's a problem with Sanity, could be wrong of course.
You’re right, this seems to be a Safari issue at its heart! Yet it’s made worse by the fact that there’s no visual difference between the placeholder value and an actual value with the Sanity UI styling (with no styling, "12:30" is shown in grey, changing to black when you enter a value). Didn’t find much discussion about it, but seems like a fix will have to be rather hacky 😞 https://stackoverflow.com/questions/69919586/how-to-remove-the-default-time-1230-pm-in-desktop-safari
Describe the bug
There is a problem when clearing the time input using backspace. In Safari the old value still persists in the DOM, even on refresh, even though it's no longer present in the dataset (I presume it's stored in the revisions somewhere?)
The input works normally in other browsers. I haven't been able to find anything about this so I assume it's a problem with Sanity, could be wrong of course.
To Reproduce
Minimal schema:
Minimal input component:
Expected behavior
The time input should be empty when there is no value
Screenshots
Deleted value on safari:
![Skjermbilde 2022-02-11 kl 16 48 26](https://user-images.githubusercontent.com/13033324/153623404-27c17487-f338-4b65-a486-dbeaf22be309.png)
On Firefox:
![Skjermbilde 2022-02-11 kl 16 48 33](https://user-images.githubusercontent.com/13033324/153623461-b38c29c4-adc9-4d9a-9e40-720b193b08f3.png)
Which versions of Sanity are you using?
@sanity/cli 2.19.1 (latest: 2.27.0)
@sanity/base 2.27.0 (up to date)
@sanity/core 2.27.0 (up to date)
@sanity/default-layout 2.27.0 (up to date)
@sanity/default-login 2.27.0 (up to date)
@sanity/desk-tool 2.27.0 (up to date)
@sanity/eslint-config-studio 2.0.0 (up to date)
@sanity/vision 2.27.0 (up to date)
What operating system are you using?
macOS Big Sur
Which versions of Node.js / npm are you running?
7.24.2
v16.13.1
The text was updated successfully, but these errors were encountered: