1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Minor fix in inputfields.js where it wasn't always triggering the 'opened' event when it should

This commit is contained in:
Ryan Cramer
2024-05-03 13:57:13 -04:00
parent bbaa5570fb
commit 4e2ef8f8fd
2 changed files with 3 additions and 1 deletions

View File

@@ -2089,6 +2089,8 @@ function InputfieldStates($target) {
} else if(Inputfields.toggleBehavior < 1) { } else if(Inputfields.toggleBehavior < 1) {
$header.trigger('click'); $header.trigger('click');
} }
var $inputfield = $header.closest('.Inputfield');
$inputfield.trigger('opened', $inputfield);
}, 500); }, 500);
}, 'html'); }, 'html');

File diff suppressed because one or more lines are too long