@syncfusion/ej2-inputs
Advanced tools
Comparing version 16.2.43 to 16.2.44
@@ -5,2 +5,10 @@ # Changelog | ||
### Form-validator | ||
#### Bug Fixes | ||
- Resolved status `updation` issue when optional validation rules passed. | ||
## 16.2.43 (2018-07-03) | ||
### ColorPicker | ||
@@ -7,0 +15,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.2.43 | ||
* version : 16.2.44 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"name": "@syncfusion/ej2-inputs", | ||
"version": "16.2.43", | ||
"version": "16.2.44", | ||
"description": "Essential JS 2 Input Components", | ||
@@ -14,3 +14,3 @@ "author": "Syncfusion Inc.", | ||
"@syncfusion/ej2-popups": "~16.2.41", | ||
"@syncfusion/ej2-splitbuttons": "~16.2.41" | ||
"@syncfusion/ej2-splitbuttons": "~16.2.44" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
@@ -182,2 +182,3 @@ import { Base, EmitType } from '@syncfusion/ej2-base'; | ||
private validateRules(name); | ||
private optionalValidationStatus(name, refer); | ||
private isValid(name, rule); | ||
@@ -184,0 +185,0 @@ private getErrorMessage(ruleValue, rule); |
@@ -471,12 +471,6 @@ var __extends = (this && this.__extends) || (function () { | ||
eventArgs.errorElement = this.infoElement; | ||
if (eventArgs.errorElement) { | ||
if (eventArgs.errorElement.getAttribute('aria-invalid') === 'false') { | ||
eventArgs.status = 'success'; | ||
} | ||
else { | ||
eventArgs.status = 'failure'; | ||
this.inputElement.classList.add(this.errorClass); | ||
this.inputElement.classList.remove(this.validClass); | ||
} | ||
} | ||
eventArgs.status = 'failure'; | ||
this.inputElement.classList.add(this.errorClass); | ||
this.inputElement.classList.remove(this.validClass); | ||
this.optionalValidationStatus(name, eventArgs); | ||
this.trigger('validationComplete', eventArgs); | ||
@@ -500,2 +494,11 @@ // Set aria-required to required rule elements | ||
}; | ||
// Update the optional validation status | ||
FormValidator.prototype.optionalValidationStatus = function (name, refer) { | ||
if (!this.rules[name][this.required] && !this.inputElement.value.length) { | ||
this.infoElement.innerHTML = this.inputElement.value; | ||
this.infoElement.setAttribute('aria-invalid', 'false'); | ||
refer.status = ''; | ||
this.hideMessage(name); | ||
} | ||
}; | ||
// Check the input element whether it's value satisfy the validation rule or not | ||
@@ -502,0 +505,0 @@ FormValidator.prototype.isValid = function (name, rule) { |
@@ -20,2 +20,3 @@ import { Component, EventHandler, Property, Event, Browser, L10n, EmitType } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, BaseEventArgs } from '@syncfusion/ej2-base';import { createElement, attributes, addClass, removeClass, setStyleAttribute, detach } from '@syncfusion/ej2-base';import { isNullOrUndefined, getValue, formatUnit, setValue, merge } from '@syncfusion/ej2-base';import { Internationalization, NumberFormatOptions, getNumericObject } from '@syncfusion/ej2-base';import { Input, InputObject, FloatLabelType } from '../input/input'; | ||
* @default null | ||
* @aspType object | ||
*/ | ||
@@ -29,2 +30,3 @@ value?: number; | ||
* @default null | ||
* @aspType object | ||
*/ | ||
@@ -38,2 +40,3 @@ min?: number; | ||
* @default null | ||
* @aspType object | ||
*/ | ||
@@ -40,0 +43,0 @@ max?: number; |
@@ -52,2 +52,3 @@ import { Component, EmitType } from '@syncfusion/ej2-base'; | ||
* @default null | ||
* @aspType object | ||
*/ | ||
@@ -60,2 +61,3 @@ value: number; | ||
* @default null | ||
* @aspType object | ||
*/ | ||
@@ -68,2 +70,3 @@ min: number; | ||
* @default null | ||
* @aspType object | ||
*/ | ||
@@ -70,0 +73,0 @@ max: number; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
18998095
181462