Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit cf953ed

Browse files
Mahdi / Hotfix on API token form (Reverted #6595) (#6634)
* Revert "Nikita/Add funds redirect button in MT5 manage funds not redirecting to cashier page in one click. (#6595)" This reverts commit abe8601. * fixed validation bug * Fixed linter bug
1 parent e0db404 commit cf953ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/javascript/app/common/form_validation.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ const Validation = (() => {
101101
const event = events_map[field.type];
102102

103103
if (event) {
104-
field.$.unbind(event).on(event, (e) => {
105-
if (e.type === 'input'){
106-
checkField(field);
107-
}
104+
field.$.unbind(event).on(event, e => {
105+
if (e.type === 'change' && e.target.type === 'text') return;
106+
checkField(field);
108107
if (field.re_check_field) {
109108
checkField(forms[form_selector].fields.find(fld => (
110109
fld.selector === field.re_check_field

0 commit comments

Comments
 (0)