]> 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>
Mon, 7 Dec 2020 14:40:15 +0000 (16:40 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 14:40:15 +0000 (16:40 +0200)
commit49f70390add1655fc5eb846e7700d00cb57b5048
treedcd54b24bc1778feebc6b2c3e0b30533a0548ee3
parent02322d16110206ffb3cf249d1fd5a44f2aa80bd5
Better error handling trying to enable HTML5 DnD for mobile from thread (#12170)

- 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]