Skip to content

Conversation

@MartynasZilinskas
Copy link

BaseContainer

  • FormId is not required in context prop types
  • Added EventStoreSubscription remove when component is unmounted

Submit

  • Added HTMLProps spread
  • Button clicked initiates submit action when it's outside of forms context

@MartynasZilinskas MartynasZilinskas merged commit 641a4a6 into dev Jul 11, 2017
@MartynasZilinskas MartynasZilinskas deleted the hotfix/container branch July 11, 2017 06:46
// If Button is outside of Form context, initiate form submit.
if (this.props.formId !== null) {
this.FormStore.InitiateFormSubmit();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proxy to props.onClick is missing.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. 👏 Will fix in next PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #115.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants