flow-components
flow-components copied to clipboard
Upload should implement HasEnabled
Vaadin Flow’s upload component has no longer a setEnabled method. I can set a custom uploadButton and call that button’s setEnabled(false) method. Even though that button is disabled, I can still click it and an upload popup will appear. Workaround: call upload.setMaxFiles(0) to prevent an upload popup to appear.
Related issue in the web component: https://github.com/vaadin/web-components/issues/1278
The HasEnabled was added in #6787 which landed in 24.6.0. Closing.