File input component & component re-rendering in app
The upload button works as expected on first load. However after adding a file & removing it again, the upload button does not get disabled again.
Are we doing something wrong or is this a bug?
4 Replies
(for information: looking in the app editor, the results are correctly set to undefined when we reomve a file from the file input component, so this seems like an issue related to firing an update event to the components that depend on the file input component?
potentially a bug. If you can give us exact reproduction steps, that will be helpful.
OK - Add a button to an app with a File Input component. Set "disabled" to the following expression:
!h.result[0] || h.result[0].name === undefined
This works on initial load, but does not work here on our end when adding & then removing again the single file we selected in the file picker