mithril-materialized 3.17.3 → 3.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.css +8 -1
- package/dist/forms.css +8 -1
- package/dist/index.css +8 -1
- package/dist/index.esm.js +11 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +11 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/sass/components/forms/_switches.scss +8 -1
package/dist/index.umd.js
CHANGED
|
@@ -4942,7 +4942,10 @@
|
|
|
4942
4942
|
// Create dropdown with proper positioning
|
|
4943
4943
|
const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
|
|
4944
4944
|
tabindex: 0,
|
|
4945
|
-
style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})),
|
|
4945
|
+
style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})), {
|
|
4946
|
+
// The full-screen portal container has pointer-events disabled so it
|
|
4947
|
+
// does not block the modal. Re-enable them for the actual menu.
|
|
4948
|
+
pointerEvents: 'auto' }),
|
|
4946
4949
|
oncreate: ({ dom }) => {
|
|
4947
4950
|
state.dropdownRef = dom;
|
|
4948
4951
|
},
|
|
@@ -7357,7 +7360,10 @@
|
|
|
7357
7360
|
// Create dropdown with proper positioning
|
|
7358
7361
|
const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
|
|
7359
7362
|
tabindex: 0,
|
|
7360
|
-
style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})),
|
|
7363
|
+
style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})), {
|
|
7364
|
+
// The full-screen portal container has pointer-events disabled so it
|
|
7365
|
+
// does not block the modal. Re-enable them for the actual menu.
|
|
7366
|
+
pointerEvents: 'auto' }),
|
|
7361
7367
|
oncreate: ({ dom }) => {
|
|
7362
7368
|
state.dropdownRef = dom;
|
|
7363
7369
|
},
|
|
@@ -7514,16 +7520,16 @@
|
|
|
7514
7520
|
onchange && onchange(!checked);
|
|
7515
7521
|
},
|
|
7516
7522
|
}, [
|
|
7517
|
-
label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
|
|
7523
|
+
label && m(Label, { label: label || '', id, isMandatory, className: 'switch-label active' }),
|
|
7518
7524
|
m('.switch', params, m('label', [
|
|
7519
|
-
m('span', left || 'Off'),
|
|
7525
|
+
m('span.switch-value', left || 'Off'),
|
|
7520
7526
|
m('input[type=checkbox]', {
|
|
7521
7527
|
id,
|
|
7522
7528
|
disabled,
|
|
7523
7529
|
checked,
|
|
7524
7530
|
}),
|
|
7525
7531
|
m('span.lever'),
|
|
7526
|
-
m('span', right || 'On'),
|
|
7532
|
+
m('span.switch-value', right || 'On'),
|
|
7527
7533
|
])),
|
|
7528
7534
|
]);
|
|
7529
7535
|
},
|