forked from mirrors/catstodon
Fix the poll option add button attempting to submit a form (#2530)
This commit is contained in:
parent
4fdbffc57c
commit
b7cb17fecf
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue