fix(filters.jade): prevent duplication of new tags
Remove ng-submit='createTag(_newTag)' as it duplicates the action of ng-click='createTag(_newTag)’ resulting in two new tags being created.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
span=env.t('clearTags')
|
||||
ul(ng-if='!areTagsHidden || _editing')
|
||||
//- Add new tag
|
||||
li.filters-edit(ng-show='_editing', ng-submit='createTag(_newTag)')
|
||||
li.filters-edit(ng-show='_editing')
|
||||
form.hrpg-input-group
|
||||
input(type='text', ng-model='_newTag', placeholder=env.t('newTag'))
|
||||
button(ng-click='createTag(_newTag)')=env.t('add')
|
||||
|
||||
Reference in New Issue
Block a user