chartjs / chartjs/Chart.js

React portal in full screen. mouse move detection not working

Open
#10,562 7 comments 1 reaction 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

when creating a new window with react portal containing a chart, the full screening of the new window should resize the chart to the screen and also have tooltips functionality working.

### Current behavior

When creating a new window with react portal, a full screening of that new window does not include the mouse move detection anymore. As a result, the tooltip does not work. Otherwise, the manually resizing of the window does include mouse move detection. Oddly when moving the new window to another monitor in full screen, mouse move detection returns.

### Reproducible sample

https://codesandbox.io/s/react-new-window-forked-is9f5k

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

3.9.1

### Browser name and version

Chrome: Version 103.0.5060.134

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.