8f8140e3b0
This adds `StopPropagation` modules that will stop the propagation of the most common events from the selection and dropdown containers. These modules work from a list of 21 common events, most of which were stopped by default in past versions, and call `stopPropagation` on them when they are detected at the container level. These modules are only available in full builds of Select2. This closes https://github.com/select2/select2/issues/2033. This closes https://github.com/select2/select2/issues/2974.
24 lines
753 B
HTML
24 lines
753 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="../vendor/qunit-1.14.0.css" type="text/css" />
|
|
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="qunit"></div>
|
|
<div id="qunit-fixture">
|
|
<div class="event-container">
|
|
<select></select>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="../vendor/qunit-1.14.0.js" type="text/javascript"></script>
|
|
<script src="../../vendor/jquery-2.1.0.js" type="text/javascript"></script>
|
|
<script src="../../dist/js/select2.full.js" type="text/javascript"></script>
|
|
|
|
<script src="../helpers.js" type="text/javascript"></script>
|
|
|
|
<script src="stopPropagation-tests.js" type="text/javascript"></script>
|
|
</body>
|
|
</html>
|