Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Selecting autocomplete hint options via mouse not reliable #78

@westonruter

Description

@westonruter

When you select an autocomplete hint option from the dropdown via mouse, a couple things aren't right:

  1. The list item doesn't have the blue highlight upon hovering or clicking that you get when using arrow keys. This actually seems to be an issue in CodeMirror itself, as if you type o and then ctrl+space at https://codemirror.net/demo/complete.html you likewise do not get the expected item styling when moving the mouse over the dropdown. This actually seems to have been reported previously in Codemirror hint- selected item not getting changed on mouse movement codemirror/codemirror5#4126
  2. Clicking on an autocomplete option causes the editor to blur and then that means we show the syntax error notifications/notices. This should be prevented since the editor will be re-focused immediately afterward. See Prevent saving when lint errors present #69.

Reported by @Presskopp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions