mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 08:52:19 +02:00
Fix custom properties getting rendered as Object instead of proper
This commit is contained in:
parent
a67d143e40
commit
c7a2dccf40
|
@ -4101,7 +4101,7 @@ var templates = {
|
|||
disabled = _a.disabled;
|
||||
var opt = new Option(label, value, false, active);
|
||||
if (customProperties) {
|
||||
opt.dataset.customProperties = "".concat(customProperties);
|
||||
opt.dataset.customProperties = "".concat(JSON.stringify(customProperties));
|
||||
}
|
||||
opt.disabled = !!disabled;
|
||||
return opt;
|
||||
|
@ -6834,7 +6834,7 @@ if (false) {}
|
|||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
|
@ -6848,14 +6848,14 @@ if (false) {}
|
|||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ !function() {
|
||||
|
@ -6868,7 +6868,7 @@ if (false) {}
|
|||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ !function() {
|
||||
/******/ // define getter functions for harmony exports
|
||||
|
@ -6880,12 +6880,12 @@ if (false) {}
|
|||
/******/ }
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ !function() {
|
||||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ !function() {
|
||||
/******/ // define __esModule on exports
|
||||
|
@ -6896,7 +6896,7 @@ if (false) {}
|
|||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ }();
|
||||
/******/
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
||||
|
@ -6922,4 +6922,4 @@ __webpack_exports__ = __webpack_exports__["default"];
|
|||
/******/ return __webpack_exports__;
|
||||
/******/ })()
|
||||
;
|
||||
});
|
||||
});
|
||||
|
|
|
@ -321,7 +321,7 @@ const templates = {
|
|||
const opt = new Option(label, value, false, active);
|
||||
|
||||
if (customProperties) {
|
||||
opt.dataset.customProperties = `${customProperties}`;
|
||||
opt.dataset.customProperties = `${JSON.stringify(customProperties)}`;
|
||||
}
|
||||
|
||||
opt.disabled = !!disabled;
|
||||
|
|
Loading…
Reference in a new issue