You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it would be handy to have native support in this awesome module for null/not null value check. I made it by myself for example adding in the directive options hash:
ade-text='"... ,"null":false}"
and then in the text_directive.js file, saveEdit function I modify a section:
...
if(exited!=3) { //don't save value on esc
if(options.null == false){
if( input.val() ) {
value = input.val();
controller.$setViewValue(value);
}
} else {
value = input.val();
controller.$setViewValue(value);
}
}
...
Maybe if no change was made, broadcasting is to be considered redundant and not necessary in my opinion.
Ciao,
Luca
The text was updated successfully, but these errors were encountered:
Hi everyone,
it would be handy to have native support in this awesome module for null/not null value check. I made it by myself for example adding in the directive options hash:
ade-text='"... ,"null":false}"
and then in the text_directive.js file, saveEdit function I modify a section:
...
if(exited!=3) { //don't save value on esc
if(options.null == false){
if( input.val() ) {
value = input.val();
controller.$setViewValue(value);
}
} else {
value = input.val();
controller.$setViewValue(value);
}
}
...
Maybe if no change was made, broadcasting is to be considered redundant and not necessary in my opinion.
Ciao,
Luca
The text was updated successfully, but these errors were encountered: