diff --git a/src/index.js b/src/index.js index f82fbd5..049edc9 100644 --- a/src/index.js +++ b/src/index.js @@ -64,6 +64,10 @@ export default function register(Component, tagName, propNames, options) { Object.keys(Component.propTypes || {}); PreactElement.observedAttributes = propNames; + if (Component.formAssociated) { + PreactElement.formAssociated = true; + } + // Keep DOM properties and Preact props in sync propNames.forEach((name) => { Object.defineProperty(PreactElement.prototype, name, {