From 1806854969b1e39575582efc5386cc5ab8ad280a Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 12 Jul 2023 20:16:36 +1200 Subject: [PATCH] Add onMouseDown handler for Firefox functionality --- client/homebrew/editor/snippetbar/snippetbar.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index 5a32ffab3..c14c3e8a2 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -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
- {global.config.codeMirrorThemes.map((theme, key)=>{ return ; })}