Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(list): Do not ignore spaces in descendant textareas.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank3K authored and ThomasBurleson committed May 2, 2015
1 parent 7d0aeef commit f737fb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/list/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ function mdListItemDirective($mdAria, $mdConstant, $timeout) {

if (!hasClick && !proxies.length) {
firstChild.addEventListener('keypress', function(e) {
if (e.target.nodeName != 'INPUT') {
if (e.keyCode == $mdConstant.KEY_CODE.SPACE) {
if (e.target.nodeName != 'INPUT' && e.target.nodeName != 'TEXTAREA') {
var keyCode = e.which || e.keyCode;
if (keyCode == $mdConstant.KEY_CODE.SPACE) {
firstChild.click();
e.preventDefault();
e.stopPropagation();
Expand Down

0 comments on commit f737fb0

Please sign in to comment.