You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
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
It is more like #16680 didn't entirely fix the issue caused by 6c224a2. So, if you have an ngClick handler on a contenteditable element (that is not an input/select/textarea/button), then spacebar will not work correctly.
Work-arounds:
Use ngKeydown/ngKeypress/ngKeyup on the same element (and set it to an non-empty value).
Use ng-on-click instead of ng-click (if you are are on latest 1.7.x).
If we wanted to fix it, it probably makes sense to also exclude [contenteditable] elements from this behavior of preventing spacebar. EDIT: Essentially, what #16762 does - I just saw it 😁
I'm submitting a ...
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:
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.
The text was updated successfully, but these errors were encountered: