milespratt / bingmaps-react

An easy to use Bing Maps React component.
https://bingmaps-react.netlify.app
MIT License
21 stars 19 forks source link

Height is causing Cannot read properties of null (reading '0') error #74

Open Nklann opened 9 months ago

Nklann commented 9 months ago

When configuring the BingMapsReact props, if I don't set the height or set the height to "auto", "100%", or any pixel value below 420px, I am receiving the error shown below when trying to open the Radial Menu to change the map view:

Unhandled Runtime Error TypeError: Cannot read properties of null (reading '0')

Call Stack r._adjustSlotText https://r.bing.com/rp/X0_TMcGQC7zntMW6Vi6WyFCNg-U.br.js (1:123275) r.showDropDownMenu https://r.bing.com/rp/X0_TMcGQC7zntMW6Vi6WyFCNg-U.br.js (1:117604) t._onMouseEnter https://r.bing.com/rp/X0_TMcGQC7zntMW6Vi6WyFCNg-U.br.js (1:165956) Object.onMouseEnter https://r.bing.com/rp/X0_TMcGQC7zntMW6Vi6WyFCNg-U.br.js (1:181284) HTMLDivElement.u https://r.bing.com/rp/mLLNMN31k1B6sTH9H7fCgKYukSg.br.js (1:18119) t. https://r.bing.com/rp/mIacWs8_crQzFfDVp3oAu1voxBk.br.js (1:23148)

If I set the height to 500px, the menu opens without errors but 500px height will not work with the component I am trying to develop.