mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-21 16:08:35 +00:00
fix : Modal component not firing event (#10016)
* fix : modal not firing event * fix : modal fireevent * chore : version bump
This commit is contained in:
parent
c3d9b29b68
commit
f4193a1e32
4 changed files with 5 additions and 4 deletions
2
.version
2
.version
|
|
@ -1 +1 @@
|
|||
2.61.1
|
||||
2.61.2
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.61.1
|
||||
2.61.2
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export const Modal = function Modal({
|
|||
return;
|
||||
}
|
||||
const canShowModal = exposedVariables.show ?? false;
|
||||
fireEvent(canShowModal ? 'onOpen' : 'onClose');
|
||||
fireEvent(!canShowModal && 'onClose');
|
||||
setShowModal(exposedVariables.show ?? false);
|
||||
const inputRef = document?.getElementsByClassName('tj-text-input-widget')?.[0];
|
||||
inputRef?.blur();
|
||||
|
|
@ -223,6 +223,7 @@ export const Modal = function Modal({
|
|||
event.stopPropagation();
|
||||
setShowModal(true);
|
||||
setExposedVariable('show', true);
|
||||
fireEvent('onOpen');
|
||||
}}
|
||||
data-cy={`${dataCy}-launch-button`}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2.61.1
|
||||
2.61.2
|
||||
|
|
|
|||
Loading…
Reference in a new issue