Socket
Socket
Sign inDemoInstall

ya-input

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ya-input - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

10

addon/components/ya-input/component.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc