mithril-materialized 3.17.4 → 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.esm.js CHANGED
@@ -4938,7 +4938,10 @@ const Dropdown = () => {
4938
4938
  // Create dropdown with proper positioning
4939
4939
  const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
4940
4940
  tabindex: 0,
4941
- style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})),
4941
+ style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})), {
4942
+ // The full-screen portal container has pointer-events disabled so it
4943
+ // does not block the modal. Re-enable them for the actual menu.
4944
+ pointerEvents: 'auto' }),
4942
4945
  oncreate: ({ dom }) => {
4943
4946
  state.dropdownRef = dom;
4944
4947
  },
@@ -7353,7 +7356,10 @@ const Select = () => {
7353
7356
  // Create dropdown with proper positioning
7354
7357
  const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
7355
7358
  tabindex: 0,
7356
- style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})),
7359
+ style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})), {
7360
+ // The full-screen portal container has pointer-events disabled so it
7361
+ // does not block the modal. Re-enable them for the actual menu.
7362
+ pointerEvents: 'auto' }),
7357
7363
  oncreate: ({ dom }) => {
7358
7364
  state.dropdownRef = dom;
7359
7365
  },