diff --git a/addon/components/bs-form/element.js b/addon/components/bs-form/element.js index ca17b97..d22d26b 100755 --- a/addon/components/bs-form/element.js +++ b/addon/components/bs-form/element.js @@ -4,12 +4,11 @@ import { A } from '@ember/array'; import BsFormElement from 'ember-bootstrap/components/bs-form/element'; export default BsFormElement.extend({ - hasValidator: notEmpty('model.validate'), setupValidations() { let key = `model.error.${this.get('property')}.validation`; - defineProperty(this, 'errors', computed(`${key}.[]`, function() { + defineProperty(this, 'errors', computed(`model._errors`, function() { return A(this.get(key)); })); }