-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pull request #11418 from ncoden/refactor/mouseleave-special-case …
…for v6.5.1 9bd7f93 refactor: move dropdownMenu mouseleave special case to its own utility function 8f2470c docs: add doc for core utility onLeaveElement 90de67a refactor: make the magic mouseleave utility a simple event filter adeee97 docs: add some doc in the magic mouseleave utility "ignoreMousedisappear" f46e78b fix: prevent Dropdown and Tooltip to hide when moving mouse to browser UI elements 5bdec3a tests: add visual test for the Dropdown magic mousleave bug f0168bb style: fix incorrectly named variable in ignoreMousedisappear utility 1847f6c fix: make the "ignoreMousedisappear()" handler called before mouseenter 3ec7915 docs: improve doc in "ignoreMousedisappear()" Note: this commit has the same purpose of 55e60ee but includes the commits from 8f2470c to 3ec7915 that missed in the previous merge commit. Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
- Loading branch information
Showing
5 changed files
with
108 additions
and
38 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!doctype html> | ||
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]--> | ||
<html class="no-js" lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
<title>Foundation for Sites Testing</title> | ||
<link href="../motion-ui/dist/motion-ui.css" rel="stylesheet" /> | ||
<link href="../assets/css/foundation.css" rel="stylesheet" /> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="grid-container"> | ||
<div class="grid-x grid-padding-x"> | ||
<div class="cell"> | ||
|
||
<h1>Dropdown with UI elements</h1> | ||
|
||
<ul> | ||
<li>1. Dropdown should stay open when the mouse goes on the input's autocomplete pane.</li> | ||
<li>2. Dropdown should stay open when the mouse reenter in the dropdown from the autocomplete pane.</li> | ||
<li>3. Dropdown should close when the nouse leave the dropdown from the autocomplete pane.</li> | ||
</ul> | ||
|
||
<button class="button" type="button" data-toggle="example-dropdown">Dropdown opening on hover</button> | ||
<div class="dropdown-pane" id="example-dropdown" data-dropdown data-hover="true" data-hover-pane="true"> | ||
<form action="#" method="post"> | ||
<div class="row"> | ||
<div> | ||
In order to test [3], there should be enough autocomplete suggestions for the autocomplete pane to overflow from the dropdown. | ||
<input type="email" placeholder="Double-click to show autocomplete" autocomplete="email"/> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="../assets/js/vendor.js"></script> | ||
<script src="../assets/js/foundation.js"></script> | ||
<script> | ||
$(document).foundation(); | ||
</script> | ||
|
||
</body> | ||
</html> |