Skip to content

Commit

Permalink
Rename custom event to jupytercadObjectSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py authored and martinRenou committed Oct 10, 2024
1 parent 6efff2a commit 3badc25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/base/src/3dview/mainview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class MainView extends React.Component<IProps, IStates> {
this.addContextMenu();
this._mainViewModel.initWorker();
this._mainViewModel.initSignal();
window.addEventListener('nodeClick', (e: Event) => {
window.addEventListener('jupytercadObjectSelection', (e: Event) => {
const customEvent = e as CustomEvent;

if (customEvent.detail.mainViewModel === this._mainViewModel.id) {
Expand Down
2 changes: 1 addition & 1 deletion packages/base/src/panelview/objecttree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class ObjectTreeReact extends React.Component<IProps, IStates> {
z: 0
};

const event = new CustomEvent('nodeClick', {
const event = new CustomEvent('jupytercadObjectSelection', {
detail: {
objectId,
objPosition,
Expand Down

0 comments on commit 3badc25

Please sign in to comment.