Skip to content

Uncaught TypeError: Cannot read properties of null (reading 'bottom') in the <Popup> component #11955

@cedricdelpoux

Description

@cedricdelpoux

mapbox-gl-js version: 2.8.2

browser: Brave Version 1.39.111 Chromium: 102.0.5005.61 (Build officiel) (arm64)2.8.2

Steps to Trigger Behavior

  1. Open a popup

Link to Demonstration

mapbox-gl.bug.mov

Expected Behavior

The popup open

Actual Behavior

react_devtools_backend.js:4026 TypeError: Cannot read properties of null (reading 'bottom')
    at so (mapbox-gl.js:32604:118)
    at Popup._update (mapbox-gl.js:34023:23)
    at Popup.addTo (mapbox-gl.js:33900:214)
    at o.value (react-map-gl.esm.js:827:78)
    at gi (react-dom.production.min.js:259:217)
    at mi (react-dom.production.min.js:258:446)
    at hi (react-dom.production.min.js:257:421)
    at react-dom.production.min.js:282:96
    at bs (react-dom.production.min.js:280:398)
    at us (react-dom.production.min.js:272:439)

The above error occurred in the <Popup> component:

    at n (webpack-internal:///./node_modules/@urbica/react-map-gl/dist/react-map-gl.esm.js:24:18672)
    at ActivitiesPopup (webpack-internal:///./src/templates/sport-map.js:370:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions