Open stefanprobst opened 4 months ago
when using a fields.file() it would be useful to display the name of the file when one has been selected. currently the widget looks like this:
fields.file()
repro: https://github.com/stefanprobst/issue-keystatic-file-field
i think the reason is that the file (and image) fields check useIsInDocumentEditor() which is always false (see here)
file
image
useIsInDocumentEditor()
@emmatown is the IsInEditorContext context a leftover from the old document field which can be removed or does it have to be added to the new richtext field as well?
IsInEditorContext
document
when using a
fields.file()
it would be useful to display the name of the file when one has been selected. currently the widget looks like this:repro: https://github.com/stefanprobst/issue-keystatic-file-field