Fix the poll option add button attempting to submit a form

This commit is contained in:
Essem 2023-12-19 23:35:48 -06:00
parent cc676636f4
commit 724ea24a5d
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -143,7 +143,7 @@ class PollForm extends ImmutablePureComponent {
{options.size < pollLimits.max_options && (
<label className='poll__text editable'>
<span className={classNames('poll__input')} style={{ opacity: 0 }} />
<button className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></button>
<button className='button button-secondary' onClick={this.handleAddOption} type='button'><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></button>
</label>
)}
</ul>