mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 16:40:00 +00:00
Reflect current view in dropdown
Useful if the view is toggled between inspect and map via keyboard shortcut.
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user