Skip to content

Commit

Permalink
fix: bug on select multiple when abe attribute required is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Feb 2, 2017
1 parent 61aa68b commit 662daf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/public/abecms/scripts/modules/EditorSave.js
Expand Up @@ -207,7 +207,10 @@ export default class EditorSave {
}

var autocomplete = input.getAttribute('data-autocomplete')
if(typeof autocomplete !== 'undefined' && autocomplete !== null && (autocomplete === 'true' || autocomplete === true)) {
var multiple = input.getAttribute('data-multiple')
if((typeof autocomplete !== 'undefined' && autocomplete !== null
&& (autocomplete === 'true' || autocomplete === true))
|| multiple != null && multiple == 'multiple') {
var countValue = input.parentNode.querySelectorAll('.autocomplete-result')
if (countValue.length <= 0) {
formGroup.classList.add('has-error')
Expand Down

0 comments on commit 662daf3

Please sign in to comment.