mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-02 05:52:14 +02:00
Rolled back webpack changes in Choices.js
This commit is contained in:
parent
03a45094b7
commit
aceb838988
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable import/prefer-default-export */
|
|
||||||
import Fuse from 'fuse.js';
|
import Fuse from 'fuse.js';
|
||||||
import merge from 'deepmerge';
|
import merge from 'deepmerge';
|
||||||
|
|
||||||
|
@ -44,7 +43,7 @@ import {
|
||||||
* Choices
|
* Choices
|
||||||
* @author Josh Johnson<josh@joshuajohnson.co.uk>
|
* @author Josh Johnson<josh@joshuajohnson.co.uk>
|
||||||
*/
|
*/
|
||||||
export class Choices {
|
class Choices {
|
||||||
constructor(element = '[data-choice]', userConfig = {}) {
|
constructor(element = '[data-choice]', userConfig = {}) {
|
||||||
if (isType('String', element)) {
|
if (isType('String', element)) {
|
||||||
const elements = Array.from(document.querySelectorAll(element));
|
const elements = Array.from(document.querySelectorAll(element));
|
||||||
|
@ -2084,3 +2083,5 @@ export class Choices {
|
||||||
}
|
}
|
||||||
|
|
||||||
Choices.userDefaults = {};
|
Choices.userDefaults = {};
|
||||||
|
// We cannot export default here due to Webpack: https://github.com/webpack/webpack/issues/3929
|
||||||
|
module.exports = Choices;
|
||||||
|
|
Loading…
Reference in a new issue