File tree 1 file changed +8
-4
lines changed
src/components/file_upload
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 190
190
191
191
let oninput_text = use_callback(|new_text, drop_content| drop_content.set(DropContent::from(new_text)), drop_content.clone());
192
192
193
- let force = use_force_update();
194
- use_effect_with_deps(move |()| force.force_update(), ());
193
+ html!(<>
194
+ // Due to https://github.com/jetli/yew-hooks/issues/35 the ref currently must be on a direct element
195
+ // of this component. It cannot be on an element nested by another component.
196
+ <div ref={node.clone()}>
195
197
196
- html!(
197
198
<Form>
199
+
198
200
<FormGroup>
199
201
<FileUpload
200
202
drag_over={*drop.over}
201
- r#ref={node.clone()}
202
203
>
203
204
<FileUploadSelect>
204
205
<InputGroup>
238
239
/>
239
240
</FileUploadDetails>
240
241
</FileUpload>
242
+
241
243
{helper_text}
242
244
</FormGroup>
243
245
</Form>
246
+ </div>
247
+ </>
244
248
)
245
249
}
246
250
You can’t perform that action at this time.
0 commit comments