Comparing version 0.0.2 to 0.0.3
@@ -40,3 +40,3 @@ import Ember from 'ember'; | ||
setErrorsObserver: on('init', observer('form', 'field-name', function() { | ||
setErrorsObserver: on('init', observer('form.model', 'field-name', function() { | ||
const fieldName = get(this, 'field-name'); | ||
@@ -66,7 +66,7 @@ const valueKey = `form.model.${fieldName}`; | ||
errorsObserver: observer('errors.length', 'hasLostFocus', 'form.shouldShowValidationErrors', function() { | ||
errorsObserver: observer('errors.length', 'hasLostFocus', 'form.model.shouldShowValidationErrors', function() { | ||
runNext(() => { | ||
const errorsCount = get(this, 'errors.length'); | ||
const hasLostFocus = get(this, 'hasLostFocus'); | ||
const shouldShowValidationErrors = get(this, 'form.shouldShowValidationErrors'); | ||
const shouldShowValidationErrors = get(this, 'form.model.shouldShowValidationErrors'); | ||
@@ -81,5 +81,5 @@ if (errorsCount === 0) { | ||
validClass: computed('canShowErrors', 'errorText', 'focusedOnce', 'form.shouldShowValidationErrors', { | ||
validClass: computed('canShowErrors', 'errorText', 'focusedOnce', 'form.model.shouldShowValidationErrors', { | ||
get() { | ||
if (get(this, 'focusedOnce') || get(this, 'form.shouldShowValidationErrors')) { | ||
if (get(this, 'focusedOnce') || get(this, 'form.model.shouldShowValidationErrors')) { | ||
if (get(this, 'canShowErrors')) { | ||
@@ -86,0 +86,0 @@ return 'is-invalid'; |
{ | ||
"name": "ya-input", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "The default blueprint for ember-cli addons.", | ||
@@ -5,0 +5,0 @@ "directories": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8298671