Bad init selection #8

Open
opened 1 year ago by corpglory-dev · 2 comments
Owner

IN any scenario when I get the core from dev and link this with yarn link
i get error:

Uncaught TypeError: current is null


__WEBPACK_DEFAULT_EXPORT__ sourceEvent.js:5
    __WEBPACK_DEFAULT_EXPORT__ mouse.js:5
    onMouseMove index.ts:274
    contextListener on.js:27
    onAdd on.js:70
    __WEBPACK_DEFAULT_EXPORT__ each.js:5
    __WEBPACK_DEFAULT_EXPORT__ on.js:94
    addEvents index.js:10174
    setTimeout handler*../../core/dist/index.js/</ChartwerkPod.prototype.addEvents index.js:10170
    render index.js:9978
    <anonymous> demo.html:42

it happens in sourceEvent.js:

import {event} from "./selection/on";

export default function() {
  var current = event, source; // here
  while (source = current.sourceEvent) current = source;
  return current;
}
IN any scenario when I get the core from dev and link this with `yarn link` i get error: ``` Uncaught TypeError: current is null __WEBPACK_DEFAULT_EXPORT__ sourceEvent.js:5 __WEBPACK_DEFAULT_EXPORT__ mouse.js:5 onMouseMove index.ts:274 contextListener on.js:27 onAdd on.js:70 __WEBPACK_DEFAULT_EXPORT__ each.js:5 __WEBPACK_DEFAULT_EXPORT__ on.js:94 addEvents index.js:10174 setTimeout handler*../../core/dist/index.js/</ChartwerkPod.prototype.addEvents index.js:10170 render index.js:9978 <anonymous> demo.html:42 ``` it happens in `sourceEvent.js`: ``` import {event} from "./selection/on"; export default function() { var current = event, source; // here while (source = current.sourceEvent) current = source; return current; } ```
Poster
Owner

I've researched and looks like it's because d3.event is null, but it's not null in the core in this.overlay.on('mouseover')

I've researched and looks like it's because `d3.event` is `null`, but it's not `null` in the core in `this.overlay.on('mouseover'`)
Poster
Owner

Looks like it happend because two different objects on d3 used in core and line-pod

Looks like it happend because two different objects on `d3` used in `core` and `line-pod`
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.