XF JS Events don't bubble up the DOM tree

It looks like all events triggered with XF.customEvent are configured to not bubble up through the DOM. The constructor specifically deletes the bubbles option from the config. As such, it is impossible to attach any listener to such an event if the event target is not immediately present when the JS is loaded, such as when the target is inside a modal.

In my specific instance I have an auto-complete field inside a modal, that I have attached a listener to with the code below...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ