mithril-materialized 3.5.7 → 3.5.9

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
@@ -3715,7 +3715,7 @@ const InputCheckbox = () => {
3715
3715
  view: ({ attrs: { className = 'col s12', onchange, label, checked, disabled, description, style, inputId } }) => {
3716
3716
  if (!checkboxId)
3717
3717
  checkboxId = inputId || uniqueId();
3718
- return m(`p`, { className, style }, m('label', { for: checkboxId }, [
3718
+ return m('div', { className, style }, m('label', { for: checkboxId }, [
3719
3719
  m('input[type=checkbox][tabindex=0]', {
3720
3720
  className: disabled ? 'disabled' : undefined,
3721
3721
  id: checkboxId,
@@ -5018,7 +5018,7 @@ const ModalPanel = () => {
5018
5018
  closeModal(attrs);
5019
5019
  }
5020
5020
  }
5021
- const { id, title, description, fixedFooter, bottomSheet, buttons, richContent, className, showCloseButton = true, closeOnBackdropClick = true, closeOnButtonClick = true, } = attrs;
5021
+ const { id, title, description, fixedFooter, bottomSheet, buttons, richContent, className, showCloseButton = true, closeOnBackdropClick = true, closeOnButtonClick = false, } = attrs;
5022
5022
  const modalClasses = [
5023
5023
  'modal',
5024
5024
  className || '',
package/dist/index.js CHANGED
@@ -3717,7 +3717,7 @@ const InputCheckbox = () => {
3717
3717
  view: ({ attrs: { className = 'col s12', onchange, label, checked, disabled, description, style, inputId } }) => {
3718
3718
  if (!checkboxId)
3719
3719
  checkboxId = inputId || uniqueId();
3720
- return m(`p`, { className, style }, m('label', { for: checkboxId }, [
3720
+ return m('div', { className, style }, m('label', { for: checkboxId }, [
3721
3721
  m('input[type=checkbox][tabindex=0]', {
3722
3722
  className: disabled ? 'disabled' : undefined,
3723
3723
  id: checkboxId,
@@ -5020,7 +5020,7 @@ const ModalPanel = () => {
5020
5020
  closeModal(attrs);
5021
5021
  }
5022
5022
  }
5023
- const { id, title, description, fixedFooter, bottomSheet, buttons, richContent, className, showCloseButton = true, closeOnBackdropClick = true, closeOnButtonClick = true, } = attrs;
5023
+ const { id, title, description, fixedFooter, bottomSheet, buttons, richContent, className, showCloseButton = true, closeOnBackdropClick = true, closeOnButtonClick = false, } = attrs;
5024
5024
  const modalClasses = [
5025
5025
  'modal',
5026
5026
  className || '',
package/dist/index.umd.js CHANGED
@@ -3719,7 +3719,7 @@
3719
3719
  view: ({ attrs: { className = 'col s12', onchange, label, checked, disabled, description, style, inputId } }) => {
3720
3720
  if (!checkboxId)
3721
3721
  checkboxId = inputId || uniqueId();
3722
- return m(`p`, { className, style }, m('label', { for: checkboxId }, [
3722
+ return m('div', { className, style }, m('label', { for: checkboxId }, [
3723
3723
  m('input[type=checkbox][tabindex=0]', {
3724
3724
  className: disabled ? 'disabled' : undefined,
3725
3725
  id: checkboxId,
@@ -5022,7 +5022,7 @@
5022
5022
  closeModal(attrs);
5023
5023
  }
5024
5024
  }
5025
- const { id, title, description, fixedFooter, bottomSheet, buttons, richContent, className, showCloseButton = true, closeOnBackdropClick = true, closeOnButtonClick = true, } = attrs;
5025
+ const { id, title, description, fixedFooter, bottomSheet, buttons, richContent, className, showCloseButton = true, closeOnBackdropClick = true, closeOnButtonClick = false, } = attrs;
5026
5026
  const modalClasses = [
5027
5027
  'modal',
5028
5028
  className || '',
package/dist/modal.d.ts CHANGED
@@ -31,7 +31,7 @@ export interface ModalAttrs extends Attributes {
31
31
  showCloseButton?: boolean;
32
32
  /** Close modal when clicking backdrop (default true) */
33
33
  closeOnBackdropClick?: boolean;
34
- /** Close modal when clicking a button (default true) */
34
+ /** Close modal when clicking a button (default false) */
35
35
  closeOnButtonClick?: boolean;
36
36
  /** Close modal when pressing escape key */
37
37
  closeOnEsc?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mithril-materialized",
3
- "version": "3.5.7",
3
+ "version": "3.5.9",
4
4
  "description": "A materialize library for mithril.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",