keystatic
keystatic copied to clipboard
file field does not display selected filename
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
i think the reason is that the file (and image) fields check useIsInDocumentEditor() which is always false (see here)
@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?
Any update on this?