File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,17 @@ 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 ) {
78- if ( event . propertyName !== 'transform' ) {
79- return ;
80- }
77+ actions . addEventListener (
78+ 'transitionend' ,
79+ ( event ) => {
80+ if ( event . propertyName !== 'transform' ) {
81+ return ;
82+ }
8183
82- actions . removeEventListener ( 'transitionend' , handler ) ;
83- doc . body . dispatchEvent ( new CustomEvent ( 'ibexa-extra-actions:after-open' ) ) ;
84- } ) ;
84+ doc . body . dispatchEvent ( new CustomEvent ( 'ibexa-extra-actions:after-open' ) ) ;
85+ } ,
86+ { once : true } ,
87+ ) ;
8588 } ;
8689 const toggleExtraActionsWidget = ( widgetData ) => {
8790 const actions = doc . querySelector ( `.ibexa-extra-actions[data-actions="${ widgetData . actions } "]` ) ;
You can’t perform that action at this time.
0 commit comments