mithril-materialized 3.17.4 → 3.17.6

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
@@ -3783,7 +3783,7 @@ const InputField = (type, defaultClass = '') => () => {
3783
3783
  },
3784
3784
  view: ({ attrs }) => {
3785
3785
  var _a, _b, _c, _d, _e, _f, _g;
3786
- const { className = 'col s12', dataError, dataSuccess, helperText, iconName, id = state.id, placeholder, isMandatory, label, maxLength, newRow, oninput, onchange, onkeydown, onkeypress, onkeyup, style, validate, canClear } = attrs, params = __rest(attrs, ["className", "dataError", "dataSuccess", "helperText", "iconName", "id", "placeholder", "isMandatory", "label", "maxLength", "newRow", "oninput", "onchange", "onkeydown", "onkeypress", "onkeyup", "style", "validate", "canClear"]);
3786
+ const { className = 'col s12', dataError, dataSuccess, helperText, iconName, id = state.id, placeholder, isMandatory, label, maxLength, newRow, oninput, onchange, onkeydown, onkeypress, onkeyup, style, validate, canClear, hideSpinners } = attrs, params = __rest(attrs, ["className", "dataError", "dataSuccess", "helperText", "iconName", "id", "placeholder", "isMandatory", "label", "maxLength", "newRow", "oninput", "onchange", "onkeydown", "onkeypress", "onkeyup", "style", "validate", "canClear", "hideSpinners"]);
3787
3787
  // const attributes = toAttrs(params);
3788
3788
  const cn = [newRow ? 'clear' : '', defaultClass, className].filter(Boolean).join(' ').trim() || undefined;
3789
3789
  // Special rendering for minmax range sliders
@@ -4011,7 +4011,7 @@ const InputField = (type, defaultClass = '') => () => {
4011
4011
  onchange(getValue(state.inputElement));
4012
4012
  }
4013
4013
  } })),
4014
- type === 'number' && !isNonInteractive
4014
+ type === 'number' && !isNonInteractive && !hideSpinners
4015
4015
  ? m('.number-input-controls', [
4016
4016
  m('button.number-input-control.number-input-control-up[type=button]', {
4017
4017
  'aria-label': `Increase ${label || 'value'}`,
@@ -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
  },