Skip to content

Commit c0f6795

Browse files
zoobestikAlexanderPrendota
authored andcommitted
fix(js): “irritating visual clutter when typing” with opened hint and state autoComplete enabled (#66)
1 parent f848a57 commit c0f6795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/executable-code/executable-fragment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export default class ExecutableFragment extends ExecutableCodeTemplate {
518518
*/
519519
this.codemirror.on("keypress", debounce((cm, event) => {
520520
if (event.keyCode !== KEY_CODES.R && !event.ctrlKey) {
521-
if (this.state.autoComplete) {
521+
if (this.state.autoComplete && !cm.state.completionActive) {
522522
CodeMirror.showHint(cm, CodeMirror.hint.kotlin, {completeSingle: false});
523523
}
524524
}

0 commit comments

Comments
 (0)