flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

Upload should implement HasEnabled

Open vincentvg opened this issue 4 years ago • 1 comments

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.

vincentvg avatar Oct 04 '21 09:10 vincentvg

Related issue in the web component: https://github.com/vaadin/web-components/issues/1278

web-padawan avatar Jul 09 '24 12:07 web-padawan

The HasEnabled was added in #6787 which landed in 24.6.0. Closing.

web-padawan avatar Apr 03 '25 11:04 web-padawan