Skip to content

Commit

Permalink
Rename CSS class for search editor row
Browse files Browse the repository at this point in the history
"editor" causes the built-in find-and-replace plugin to break because it
thinks this row is a text editor, and it fails trying to retrieve the
editor model from the view element.

Fixes #151.
  • Loading branch information
oggy committed Aug 18, 2019
1 parent 37a3e6d commit 0c5e5f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/search-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SearchView
@element = document.createElement('div')
@element.classList.add('atomic-emacs', 'search')
@element.innerHTML = """
<div class="row editor">
<div class="row inputs">
<label for="atomic_emacs_search_editor">Search:</label>
<div class="SEARCH-EDITOR"></div>
<span class="btn-group btn-group-options">
Expand Down
2 changes: 1 addition & 1 deletion styles/atomic-emacs.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.search {
padding: 3px;

.row.editor {
.row.inputs {
display: flex;
flex-flow: row nowrap;
align-items: center;
Expand Down

0 comments on commit 0c5e5f1

Please sign in to comment.