diff --git a/src/form/input.js b/src/form/input.js index 416361e..37de94c 100644 --- a/src/form/input.js +++ b/src/form/input.js @@ -385,4 +385,4 @@ class Input extends Component { } } -customElements.define('wc-input', Input) +Input.reg('input') diff --git a/src/form/number.js b/src/form/number.js index 7efacf0..cc731dd 100644 --- a/src/form/number.js +++ b/src/form/number.js @@ -327,4 +327,4 @@ class WcNumber extends Component { } } -customElements.define('wc-number', WcNumber) +WcNumber.reg('number') diff --git a/src/form/textarea.js b/src/form/textarea.js index 27ada78..538f9f7 100644 --- a/src/form/textarea.js +++ b/src/form/textarea.js @@ -217,4 +217,4 @@ class TextArea extends Component { } } -customElements.define('wc-textarea', TextArea) +TextArea.reg('textarea')