Comparing version 0.1.4 to 0.1.5
@@ -71,9 +71,9 @@ import Ember from 'ember'; | ||
canShowErrors: computed('errors.[]', 'hasLostFocus', 'shouldShowValidationErrors', { | ||
canShowErrors: computed('errors.[]', 'hasFocusedOnce', 'shouldShowValidationErrors', { | ||
get() { | ||
const errorsCount = get(this, 'errors.length'); | ||
const hasLostFocus = get(this, 'hasLostFocus'); | ||
const hasFocusedOnce = get(this, 'hasFocusedOnce'); | ||
const shouldShowValidationErrors = get(this, 'shouldShowValidationErrors'); | ||
return !!(errorsCount > 0 && (hasLostFocus || shouldShowValidationErrors)); | ||
return !!(errorsCount > 0 && (hasFocusedOnce || shouldShowValidationErrors)); | ||
}, | ||
@@ -80,0 +80,0 @@ set: defaultCPSetter |
{ | ||
"name": "ya-input", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "The default blueprint for ember-cli addons.", | ||
@@ -5,0 +5,0 @@ "directories": { |
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
9514