Skip to content

Commit

Permalink
lower case to filter better
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed May 4, 2016
1 parent f2d966d commit f028770
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/add-component-pane.js
Expand Up @@ -11,8 +11,10 @@ var pane = require('../services/pane'),
*/
function filter(val, items) {
_.each(items, function (item) {
var label = item.textContent,
name = item.getAttribute('data-item-name');
var label = item.textContent.toLowerCase(),
name = item.getAttribute('data-item-name').toLowerCase();

val = val.toLowerCase();

if (_.includes(label, val) || _.includes(name, val)) {
item.classList.remove('filtered');
Expand Down

0 comments on commit f028770

Please sign in to comment.