I'm trying to add button[type=submit]
to React-ladda button. There is no information regarding this in the React-ladda documentation.
Though, the Javascript Ladda documentation tells me to use LaddaButton.bind( 'button[type=submit]' );
I'm not able to figure out how to add this to the <LaddaButton></LaddaButton>
React component.
To define your LaddaButton type as submit, you may just add the type property to LaddaButton
<LaddaButton
loading={this.state.expLeft}
onClick={() => this.toggle('expLeft')}
data-color="green"
data-style={EXPAND_LEFT}
type="submit">
Click
</LaddaButton>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.