-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: display drop label as disabled when max files reached (#379)
cherry pick of: vaadin/web-components#2558 fixes warranty issue: vaadin/web-components#2431
- Loading branch information
1 parent
087ba97
commit f28c07e
Showing
10 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+5.51 KB
test/visual/screens/vaadin-upload/state-tests-lumo/vaadin-upload/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4 KB
test/visual/screens/vaadin-upload/state-tests-lumo/vaadin-upload/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.55 KB
test/visual/screens/vaadin-upload/state-tests-material/vaadin-upload/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.26 KB
test/visual/screens/vaadin-upload/state-tests-material/vaadin-upload/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
|
||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
<script src="../../bower_components/webcomponentsjs/webcomponents-lite.js"></script> | ||
<script> | ||
const theme = window.location.search.replace(/.*theme=(\w+).*/, '$1') || 'lumo'; | ||
document.write('<link rel="import" href="../../theme/' + theme + '/vaadin-upload.html">'); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="state-tests" style="display: inline-block"> | ||
<vaadin-upload id="max-files-reached"> | ||
</vaadin-upload> | ||
</div> | ||
|
||
<script> | ||
window.addEventListener('WebComponentsReady', () => { | ||
const stateMaxFilesReachedUpload = document.getElementById('max-files-reached'); | ||
stateMaxFilesReachedUpload.maxFiles = 1; | ||
stateMaxFilesReachedUpload.files = [{name: 'Don Quixote.pdf'}]; | ||
}); | ||
</script> | ||
|
||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters