Fixed enter key in search field
This commit is contained in:
parent
157f63d11a
commit
b71afda45a
|
@ -82,16 +82,13 @@ export default class Search extends Component {
|
|||
}
|
||||
|
||||
handleSubmit = (event) => {
|
||||
event.stopPropagation()
|
||||
event.preventDefault()
|
||||
|
||||
if (this.timeout !== null) {
|
||||
// there is a pending change
|
||||
this.debouncedOnChange()
|
||||
}
|
||||
else {
|
||||
// no pending change, go to next result
|
||||
this.props.onNext()
|
||||
this.props.onNext(event)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// @selectedColor: #e5e5e5;
|
||||
@selectedColor: #ffed99;
|
||||
@hoverColor: #f2f2f2;
|
||||
@hoverAndSelectedColor: #F2E191;
|
||||
@hoverAndSelectedColor: #ffdb80;
|
||||
|
||||
.jsoneditor {
|
||||
border: 1px solid @theme-color;
|
||||
|
@ -608,7 +608,7 @@ div.jsoneditor-node-container {
|
|||
}
|
||||
|
||||
// hovering nested elements
|
||||
.jsoneditor-hover {
|
||||
div.jsoneditor-hover {
|
||||
background-color: @hoverAndSelectedColor;
|
||||
|
||||
&.jsoneditor-hover-insert-area {
|
||||
|
|
Loading…
Reference in New Issue