sp-dev-fx-controls-react
sp-dev-fx-controls-react copied to clipboard
FilePicker: Option "From a Link". Cannot enter a link manually
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.5.0]
Expected / Desired Behavior / Question
When disabling property "hideLinkUploadTab" a Tab "From a link is shown". If i try to enter a link manually, it will not work, copy & paste link works. It seems taht the textbox is disbaled for editing. Maybe there is a reason for this?
Our users would like to enter links manually.
Observed Behavior
Users can enter links manually in Tab "From a link".
Steps to Reproduce
Use File Picker with Option hideLinkUploadTab set to false and try to add a link manually (by adding text with my keyboard ;-))
Thanks!
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Any updates on this? It doesnt seem to have changed in 3.6.0
A solution is to use the 'renderCustomLinkTabContent' prop to render a custom input, and hide the default input
<FilePicker
...other props...
renderCustomLinkTabContent={
(filePickerResult: IFilePickerResult): JSX.Element | null => <CustomInput />
}
/>
Same with me here. I saw the above answer, where kenneth sugests to use a custom input and hide the default input. But, i think that the only way of doing that is accessing the DOM and manually disable the default input. In other words, the default input is aways there
Hi @michaelmaillot @joelfmrodrigues! I want to contribute to this issue. Could you please assign it me?