We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Anyone experiencing issue with adding onClick event to InfoBox children?
import InfoBox from 'react-google-maps/lib/addons/InfoBox'; <InfoBox> <div onClick={() => {console.log('clicked')}}> lorem ipsum </div> </InfoBox>
The text was updated successfully, but these errors were encountered:
ok i figured it out.. the problem wasnt here but in infobox library (https://github.com/lucasfs7/google-maps-infobox-module)
solution: infobox has disabled mouse event propagation by default.. so just set it up by option enableEventPropagation
enableEventPropagation
const infoBoxProps = { position: new google.maps.LatLng(1,2), options: { enableEventPropagation: true }, }; <InfoBox {...infoBoxProps}> <div onClick={() => {console.log('clicked')}}> lorem ipsum </div> </InfoBox>
Sorry, something went wrong.
Please refer to Getting Help section in the README (or #469).
No branches or pull requests
Anyone experiencing issue with adding onClick event to InfoBox children?
The text was updated successfully, but these errors were encountered: