File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,12 @@ const schema = {
378378
379379>  Note that storing large dataURIs into form state might slow rendering.
380380
381+ ##### File widget input ref  
382+ 
383+ The included ` FileWidget `  exposes a reference to the ` <input type="file" /> `  element node as an ` inputRef `  component property.
384+ 
385+ This allows you to programmatically trigger the browser's file selector which can be used in a custom file widget.
386+ 
381387### Object fields ordering  
382388
383389The ` uiSchema `  object spec also allows you to define in which order a given object field properties should be rendered using the ` ui:order `  property:
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ class FileWidget extends Component {
100100 < div > 
101101 < p > 
102102 < input 
103+  ref = { ref  =>  this . inputRef  =  ref } 
103104 id = { id } 
104105 type = "file" 
105106 disabled = { readonly  ||  disabled } 
                         You can’t perform that action at this time. 
           
                  
0 commit comments