Fix the poll option add button attempting to submit a form (#2530)
This commit is contained in:
parent
4fdbffc57c
commit
b7cb17fecf
|
@ -143,7 +143,7 @@ class PollForm extends ImmutablePureComponent {
|
||||||
{options.size < pollLimits.max_options && (
|
{options.size < pollLimits.max_options && (
|
||||||
<label className='poll__text editable'>
|
<label className='poll__text editable'>
|
||||||
<span className={classNames('poll__input')} style={{ opacity: 0 }} />
|
<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>
|
</label>
|
||||||
)}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue