I have a popup that I would like to have appear after a user selects the date and time in a DateTime Input component and then clicks out of the component to make it disappear. What event type would work best for triggering my event sctipy when the user clicks outside of the component so that it disappears? I tried onBlur, but that makes the popup appear when I switch the month in the component, which is too early.
Does the onActionPerformed event not fire when you want?
If not, you could use a onValueChanged event on the component value property and check for the event origin to be Browser
(post deleted by author)
The onActionPerformed event does not work in this case because it causes my popup to appear on the first action performed. I want to be able to make multiple “actions”, such as changing the time and date within the DateTime input component before the popup appears. This is why I thought that maybe there is an event type that represents when I click out of my component and make it disappear, but I could not find exactly what I’m looking for since onBlur does not work when changing the months within the component.
In terms of a value change script, it’s the same thing. It causes the popup to appear on the first action rather than when I am done with my multiple actions within the component.
You could set a boolean flag when onActionPerformed is triggered indicating the popup had appeared, then use an onClick handler on the root of the page view that checks it and opens the other popup.