mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-30 00:14:39 +01:00
Reflect current view in dropdown
Useful if the view is toggled between inspect and map via keyboard shortcut.
This commit is contained in:
parent
6cf861d44e
commit
14e0385575
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ export default class Toolbar extends React.Component {
|
|||
<ToolbarSelect wdKey="nav:inspect">
|
||||
<MdFindInPage />
|
||||
<IconText>View </IconText>
|
||||
<select onChange={(e) => this.handleSelection(e.target.value)}>
|
||||
<select onChange={(e) => this.handleSelection(e.target.value)} value={currentView.id}>
|
||||
{views.map((item) => {
|
||||
return (
|
||||
<option key={item.id} value={item.id}>
|
||||
|
|
Loading…
Reference in a new issue