@@ -25,11 +25,6 @@ type ListItemBasePressEventDetail = {
2525 key ?: string ,
2626}
2727
28- type ListItemBaseClickEventDetail = {
29- item : ListItemBase ,
30- originalEvent : Event ,
31- }
32-
3328/**
3429 * @class
3530 * A class to serve as a foundation
@@ -43,19 +38,6 @@ type ListItemBaseClickEventDetail = {
4338 renderer : jsxRenderer ,
4439 styles : [ styles , draggableElementStyles ] ,
4540} )
46- /**
47- * Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.
48- *
49- * **Note:** The event will not be fired if the `disabled` property is set to `true`.
50- *
51- * @since 2.22.0
52- * @public
53- * @param {ListItemBase } item The activated item.
54- * @param {Event } originalEvent The original event from the user interaction.
55- */
56- @event ( "click" , {
57- bubbles : true ,
58- } )
5941@event ( "request-tabindex-change" , {
6042 bubbles : true ,
6143} )
@@ -74,7 +56,6 @@ type ListItemBaseClickEventDetail = {
7456} )
7557class ListItemBase extends UI5Element implements ITabbable {
7658 eventDetails ! : {
77- "click" : ListItemBaseClickEventDetail ,
7859 "request-tabindex-change" : FocusEvent ,
7960 "_press" : ListItemBasePressEventDetail ,
8061 "_focused" : FocusEvent ,
@@ -187,7 +168,6 @@ class ListItemBase extends UI5Element implements ITabbable {
187168 if ( this . getFocusDomRef ( ) ! . matches ( ":has(:focus-within)" ) || this . _isDisabledInteractiveContentClicked ( e ) ) {
188169 return ;
189170 }
190- e . stopPropagation ( ) ;
191171 this . fireItemPress ( e ) ;
192172 }
193173
@@ -253,7 +233,6 @@ class ListItemBase extends UI5Element implements ITabbable {
253233 if ( isEnter ( e as KeyboardEvent ) ) {
254234 e . preventDefault ( ) ;
255235 }
256- this . fireDecoratorEvent ( "click" , { item : this , originalEvent : e } ) ;
257236 this . fireDecoratorEvent ( "_press" , { item : this , selected : this . selected , key : ( e as KeyboardEvent ) . key } ) ;
258237 }
259238
@@ -334,5 +313,4 @@ export default ListItemBase;
334313
335314export type {
336315 ListItemBasePressEventDetail ,
337- ListItemBaseClickEventDetail ,
338316} ;
0 commit comments