Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when clicking on empty area in paper #2406

Closed
anssit opened this issue Aug 9, 2021 · 0 comments
Closed

Exception when clicking on empty area in paper #2406

anssit opened this issue Aug 9, 2021 · 0 comments
Labels

Comments

@anssit
Copy link
Contributor

anssit commented Aug 9, 2021

Steps to reproduce

  1. Open a design with e.g. a single vaadin-button.
  2. Click anywhere on the paper, except on the button.

Actual behavior

Browser console shows exception:

Uncaught TypeError: Cannot read property 'childNodes' of null
    at HTMLElement._textNodeFromPoint (vaadin-designer-paper.js:434)
    at HTMLElement._resolveElementFromEvent (vaadin-designer-paper.js:416)
    at HTMLElement._findTargetElement (vaadin-designer-paper.js:396)
    at HTMLElement._clickHandler (vaadin-designer-paper.js:362)
    at HTMLElement._preventClickInteraction (vaadin-designer-paper.js:306)
_textNodeFromPoint @ vaadin-designer-paper.js:434
_resolveElementFromEvent @ vaadin-designer-paper.js:416
_findTargetElement @ vaadin-designer-paper.js:396
_clickHandler @ vaadin-designer-paper.js:362
_preventClickInteraction @ vaadin-designer-paper.js:306

Otherwise seems to work as expected.

Expected behavior

No exception in console.

IDE, Designer and OS version

4.6.7

@anssit anssit added the bug label Aug 9, 2021
@szolo szolo closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants