File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,13 @@ import { getInstance } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scri
7474 restoreInitialFormData ( actions ) ;
7575 } ;
7676 const dispatchAfterOpenEvent = ( actions ) => {
77- actions . addEventListener ( 'transitionend' , function handler ( event ) {
77+ actions . addEventListener ( 'transitionend' , ( event ) => {
7878 if ( event . propertyName !== 'transform' ) {
7979 return ;
8080 }
8181
82- actions . removeEventListener ( 'transitionend' , handler ) ;
8382 doc . body . dispatchEvent ( new CustomEvent ( 'ibexa-extra-actions:after-open' ) ) ;
84- } ) ;
83+ } , { once : true } ) ;
8584 } ;
8685 const toggleExtraActionsWidget = ( widgetData ) => {
8786 const actions = doc . querySelector ( `.ibexa-extra-actions[data-actions="${ widgetData . actions } "]` ) ;
You can’t perform that action at this time.
0 commit comments