Skip to content

Commit 9bd7e11

Browse files
authored
feat(form): debug a warning if field identifier is not found
In #2481 it was tried to call add prompt to a form given an identifier that does not exist. Because of that a prompt cannot be found/used and eventually the transition which tries to fade in the prompt throws a warning, that the node is not attached to the DOM anymore. This PR adds a debug log warnin in case the identifier is not found in the form, so developers can figure out whats wrong.
1 parent b4c60c1 commit 9bd7e11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/definitions/behaviors/form.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ $.fn.form = function(parameters) {
642642
if((t=$field.filter('[data-' + metadata.validate + '="'+ identifier +'"]')).length > 0 ) {
643643
return t;
644644
}
645+
module.debug('Field identifier not found.', identifier);
645646
return $('<input/>');
646647
},
647648
fields: function(fields) {

0 commit comments

Comments
 (0)