]> source.dussan.org Git - vaadin-framework.git/commit
Better error handling trying to enable HTML5 DnD for mobile from thread (#12170)...
authorAnna Koskinen <Ansku@users.noreply.github.com>
Fri, 18 Dec 2020 13:03:49 +0000 (15:03 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Dec 2020 13:03:49 +0000 (15:03 +0200)
commite07e3d02e465ecfa960966ca7432bce11c9701f0
tree78526428bba1c75a0bdb25a1e53271f934964a90
parent2f988768707df85e9f68f3ca3fc54fceced36aae
Better error handling trying to enable HTML5 DnD for mobile from thread (#12170) (#12175)

- Informative error message
- Reset back to disabled state when enabling fails
- Incorrect usage also detectable using non-mobile devices

Fixes #12152
server/src/main/java/com/vaadin/ui/UI.java
uitest/src/main/java/com/vaadin/tests/components/ui/MobileHtml5DndEnablingError.java [new file with mode: 0644]
uitest/src/test/java/com/vaadin/tests/components/ui/MobileHtml5DndEnablingErrorTest.java [new file with mode: 0644]