tomchentw / react-google-maps

React.js Google Maps integration component
https://tomchentw.github.io/react-google-maps/
MIT License
4.62k stars 939 forks source link

Bug returning history in IOS Safari #998

Open Winner244 opened 4 years ago

Winner244 commented 4 years ago

IPhone, Safari: Preparation: 2 pages. fisrt - any second - page with "" from "react-google-maps"

  1. go to the website, on the first page
  2. go to second page by "" from "react-router",
  3. render on second page:
    const defaultOptions = {
     mapTypeControl: false,
     zoomControl: false,
     streetViewControl: false,
     fullscreenControl: false
    };
    return withGoogleMap((props) =>
     <GoogleMap
           center={this.props.center}
           defaultZoom={8}
           defaultOptions={defaultOptions}
     >
           <Marker position={this.props.center} />
     </GoogleMap>
    );

    4 Click the back button on the iphone's bottom navigation bar.

  4. repeat 2-4 points

Expected: you are returned to the first page Actual: You stayed on the current page. Below the url of the address the download bar is visible (20% freezes)

also do not work for this situation: browserHistory.goBack() from 'react-router' history.back() from global field "window"

versions: "react-router": "3.0.0", "react-google-maps": "^9.4.5",

JustFly1984 commented 4 years ago

@Winner244 this library is unmaintained more than a year. Please refer to npm @react-google-maps/api