Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngAria disables spacebar for contenteditable divs #16761

@Eblax

Description

@Eblax

I'm submitting a ...

  • bug report
  • feature request
  • other

Current behavior:

If you have a div with contenteditable="true" and this div has an ancestor with an ng-click directive, and ngAria is being used, pressing spacebar does nothing when editing inside the contenteditable div.

Expected / new behavior:

Pressing the spacebar should result in a space being entered in the text.

Minimal reproduction of the problem with instructions:

  • Include ngAria
  • Put ng-click on a div
  • Put contenteditable="true" on a div inside this div
  • See that pressing the spacebar when editing text in this div does nothing
    http://plnkr.co/edit/CqMNGYzinoYy8o3HawPw

AngularJS version: 1.7.5

Browser: [Chrome 71 | Firefox 63]

Anything else:

I fixed this by adding a check if element has "isContentEditable" property before blocking spacebar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions