0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 05:42:40 +00:00

Add onMouseDown handler for Firefox functionality

This commit is contained in:
G.Ambatte
2023-07-12 20:16:36 +12:00
parent c2570fec6b
commit 1806854969

View File

@@ -104,6 +104,7 @@ const Snippetbar = createClass({
},
changeTheme : function(e){
if(e.target.value == this.props.currentEditorTheme) return;
this.props.updateEditorTheme(e.target.value);
this.setState({
@@ -113,7 +114,7 @@ const Snippetbar = createClass({
renderThemeSelector : function(){
return <div className='themeSelector'>
<select value={this.props.currentEditorTheme} onChange={this.changeTheme}>
<select value={this.props.currentEditorTheme} onChange={this.changeTheme} onMouseDown={(this.changeTheme)}>
{global.config.codeMirrorThemes.map((theme, key)=>{
return <option key={key} value={theme}>{theme}</option>;
})}