mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-23 16:02:21 +02:00
Version 1.1.1
This commit is contained in:
parent
c3e46e55aa
commit
24d6aea68f
|
@ -1,4 +1,4 @@
|
||||||
/*! choices.js v4.1.0 | (c) 2018 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
/*! choices.js v4.1.1 | (c) 2018 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
//CommonJS2
|
//CommonJS2
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -3256,6 +3256,7 @@ var Choices = function () {
|
||||||
// If keycode has a function, run it
|
// If keycode has a function, run it
|
||||||
if (keyDownActions[keyCode]) {
|
if (keyDownActions[keyCode]) {
|
||||||
keyDownActions[keyCode]({
|
keyDownActions[keyCode]({
|
||||||
|
event: event,
|
||||||
target: target,
|
target: target,
|
||||||
keyCode: keyCode,
|
keyCode: keyCode,
|
||||||
metaKey: metaKey,
|
metaKey: metaKey,
|
||||||
|
@ -3333,7 +3334,8 @@ var Choices = function () {
|
||||||
}, {
|
}, {
|
||||||
key: '_onEnterKey',
|
key: '_onEnterKey',
|
||||||
value: function _onEnterKey(_ref4) {
|
value: function _onEnterKey(_ref4) {
|
||||||
var target = _ref4.target,
|
var event = _ref4.event,
|
||||||
|
target = _ref4.target,
|
||||||
activeItems = _ref4.activeItems,
|
activeItems = _ref4.activeItems,
|
||||||
hasActiveDropdown = _ref4.hasActiveDropdown;
|
hasActiveDropdown = _ref4.hasActiveDropdown;
|
||||||
var enterKey = _constants.KEY_CODES.ENTER_KEY;
|
var enterKey = _constants.KEY_CODES.ENTER_KEY;
|
||||||
|
@ -3389,7 +3391,8 @@ var Choices = function () {
|
||||||
}, {
|
}, {
|
||||||
key: '_onDirectionKey',
|
key: '_onDirectionKey',
|
||||||
value: function _onDirectionKey(_ref6) {
|
value: function _onDirectionKey(_ref6) {
|
||||||
var hasActiveDropdown = _ref6.hasActiveDropdown,
|
var event = _ref6.event,
|
||||||
|
hasActiveDropdown = _ref6.hasActiveDropdown,
|
||||||
keyCode = _ref6.keyCode,
|
keyCode = _ref6.keyCode,
|
||||||
metaKey = _ref6.metaKey;
|
metaKey = _ref6.metaKey;
|
||||||
var downKey = _constants.KEY_CODES.DOWN_KEY,
|
var downKey = _constants.KEY_CODES.DOWN_KEY,
|
||||||
|
@ -3439,7 +3442,8 @@ var Choices = function () {
|
||||||
}, {
|
}, {
|
||||||
key: '_onDeleteKey',
|
key: '_onDeleteKey',
|
||||||
value: function _onDeleteKey(_ref7) {
|
value: function _onDeleteKey(_ref7) {
|
||||||
var target = _ref7.target,
|
var event = _ref7.event,
|
||||||
|
target = _ref7.target,
|
||||||
hasFocusedInput = _ref7.hasFocusedInput,
|
hasFocusedInput = _ref7.hasFocusedInput,
|
||||||
activeItems = _ref7.activeItems;
|
activeItems = _ref7.activeItems;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
4
public/assets/scripts/choices.min.js
vendored
4
public/assets/scripts/choices.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
<!-- Ignore these -->
|
<!-- Ignore these -->
|
||||||
<link rel="stylesheet" href="assets/styles/base.min.css?version=4.1.0">
|
<link rel="stylesheet" href="assets/styles/base.min.css?version=4.1.1">
|
||||||
<!-- End ignore these -->
|
<!-- End ignore these -->
|
||||||
|
|
||||||
<!-- Optional includes -->
|
<!-- Optional includes -->
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
<!-- End optional includes -->
|
<!-- End optional includes -->
|
||||||
|
|
||||||
<!-- Choices includes -->
|
<!-- Choices includes -->
|
||||||
<link rel="stylesheet" href="assets/styles/choices.min.css?version=4.1.0">
|
<link rel="stylesheet" href="assets/styles/choices.min.css?version=4.1.1">
|
||||||
<script src="assets/scripts/choices.min.js?version=4.1.0"></script>
|
<script src="assets/scripts/choices.min.js?version=4.1.1"></script>
|
||||||
<!-- End Choices includes -->
|
<!-- End Choices includes -->
|
||||||
|
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
|
|
44
public/test/test.html
Normal file
44
public/test/test.html
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
|
||||||
|
<title>Choices</title>
|
||||||
|
<meta name=description itemprop=description content="A lightweight, configurable select box/text input plugin. Similar to Select2 and Selectize but without the jQuery dependency.">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="../assets/images/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" href="../assets/images/favicon-32x32.png" sizes="32x32">
|
||||||
|
<link rel="icon" type="image/png" href="../assets/images/favicon-16x16.png" sizes="16x16">
|
||||||
|
<link rel="manifest" href="../assets/images/manifest.json">
|
||||||
|
<link rel="mask-icon" href="../assets/images/safari-pinned-tab.svg" color="#00bcd4">
|
||||||
|
<link rel="shortcut icon" href="../assets/images/favicon.ico">
|
||||||
|
<meta name="msapplication-config" content="../assets/images/browserconfig.xml">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<!-- Ignore these -->
|
||||||
|
<link rel="stylesheet" href="../assets/styles/base.min.css?version=3.0.2">
|
||||||
|
<!-- End ignore these -->
|
||||||
|
|
||||||
|
<!-- Choices includes -->
|
||||||
|
<link rel="stylesheet" href="../assets/styles/choices.min.css?version=3.0.2">
|
||||||
|
<script src="../assets/scripts/choices.min.js?version=2.8.8"></script>
|
||||||
|
<!-- End Choices includes -->
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="section">
|
||||||
|
<form>
|
||||||
|
<select id="choices-basic" multiple>
|
||||||
|
<option value="foo">bar</option>
|
||||||
|
</select>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
new Choices('#choices-basic');
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue