mithril-materialized 3.5.7 → 3.5.8

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,
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,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mithril-materialized",
3
- "version": "3.5.7",
3
+ "version": "3.5.8",
4
4
  "description": "A materialize library for mithril.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",