Open egor-a-trubnikov-panov opened 5 years ago
Seems like routePanel control is an exception in YMaps API where the state needs to be set on an instance of routePanel attached to the control and not the control itself. I need to think about how to fix this without messing with YMaps API too much.
In the meantime, you can work around it by accessing the instance of the control directly, here is an example of how to do that
it doesn't work
<RoutePanel state={{ fromEnabled: false, from: 'moscow', to: 'saint petersburg', type: 'auto', }} />
"react-yandex-maps": "3.0.2",