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/index.js CHANGED
@@ -4940,7 +4940,10 @@ const Dropdown = () => {
4940
4940
  // Create dropdown with proper positioning
4941
4941
  const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
4942
4942
  tabindex: 0,
4943
- style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})),
4943
+ style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})), {
4944
+ // The full-screen portal container has pointer-events disabled so it
4945
+ // does not block the modal. Re-enable them for the actual menu.
4946
+ pointerEvents: 'auto' }),
4944
4947
  oncreate: ({ dom }) => {
4945
4948
  state.dropdownRef = dom;
4946
4949
  },
@@ -7355,7 +7358,10 @@ const Select = () => {
7355
7358
  // Create dropdown with proper positioning
7356
7359
  const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
7357
7360
  tabindex: 0,
7358
- style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})),
7361
+ style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})), {
7362
+ // The full-screen portal container has pointer-events disabled so it
7363
+ // does not block the modal. Re-enable them for the actual menu.
7364
+ pointerEvents: 'auto' }),
7359
7365
  oncreate: ({ dom }) => {
7360
7366
  state.dropdownRef = dom;
7361
7367
  },
@@ -7512,16 +7518,16 @@ const Switch = () => {
7512
7518
  onchange && onchange(!checked);
7513
7519
  },
7514
7520
  }, [
7515
- label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
7521
+ label && m(Label, { label: label || '', id, isMandatory, className: 'switch-label active' }),
7516
7522
  m('.switch', params, m('label', [
7517
- m('span', left || 'Off'),
7523
+ m('span.switch-value', left || 'Off'),
7518
7524
  m('input[type=checkbox]', {
7519
7525
  id,
7520
7526
  disabled,
7521
7527
  checked,
7522
7528
  }),
7523
7529
  m('span.lever'),
7524
- m('span', right || 'On'),
7530
+ m('span.switch-value', right || 'On'),
7525
7531
  ])),
7526
7532
  ]);
7527
7533
  },