I'm trying to display the files attached to FileInput, provided by react-admin, in a new tab, instead of the current page. However it seems that the prop target="_blank" does not work properly. The document is not displayed in a new tab nor in the current one.
Code:
<FileInput
label="File input"
multiple={true}
>
<FileField source="rawFile.preview" title="rawFile.name" target="_blank"/>
</FileInput>
Without the target prop the documents are correctly displayed in the current page.
Is this a bug of FileInput component or am I doing something wrong?