Skip to content

Commit

Permalink
Přidání event parametru, který je i v původní metodě.
Browse files Browse the repository at this point in the history
  • Loading branch information
zipper committed Sep 5, 2024
1 parent c2e7350 commit ba9d410
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/assets/pdForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,16 +712,16 @@
/**
* Setup handlers.
*/
Nette.initForm = function (form) {
Nette.initForm = function (form, event) {
// Skip already initialized forms
if (form.noValidate) {
// Always call the original `initForm` method. This method handles already initialised forms itself.
pdForms.Nette.initForm(form);
pdForms.Nette.initForm(form, event);

return;
}

pdForms.Nette.initForm(form);
pdForms.Nette.initForm(form, event);

addDelegatedEventListener(form, 'focusout change', 'select, textarea, input:not([type="submit"]):not([type="reset"])', setEverFocused);

Expand Down

0 comments on commit ba9d410

Please sign in to comment.