Skip to content

Commit

Permalink
primefaces#6184 ListBox: originalEvent might be undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodemer committed Mar 21, 2024
1 parent 765dd48 commit ee7a32f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/lib/listbox/ListBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export const ListBox = React.memo(
originalEvent: event,
value,
stopPropagation: () => {
event.stopPropagation();
event?.stopPropagation();
},
preventDefault: () => {
event.preventDefault();
event?.preventDefault();
},
target: {
name: props.name,
Expand Down Expand Up @@ -509,10 +509,10 @@ export const ListBox = React.memo(
originalEvent: event,
value,
stopPropagation: () => {
event.stopPropagation();
event?.stopPropagation();
},
preventDefault: () => {
event.preventDefault();
event?.preventDefault();
},
target: {
name: props.name,
Expand Down

0 comments on commit ee7a32f

Please sign in to comment.