fancy-select
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -90,4 +90,2 @@ var mercury = require('mercury') | ||
return { | ||
@@ -94,0 +92,0 @@ render: function (state) { |
{ | ||
"name": "fancy-select", | ||
"description": "a unidirectional combobox component based on the aria spec", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"repository": { | ||
@@ -23,3 +23,4 @@ "url": "nrw/fancy-select" | ||
"option-tree": "^0.2.0", | ||
"styled-string-width": "^0.1.2" | ||
"styled-string-width": "^0.1.2", | ||
"virtual-hyperscript": "^4.5.0" | ||
}, | ||
@@ -26,0 +27,0 @@ "devDependencies": { |
var slice = Array.prototype.slice | ||
var mutableFocus = require('./mutable-focus') | ||
var focusHook = require('virtual-hyperscript/hooks/focus-hook') | ||
@@ -103,3 +103,3 @@ var Key = {ENTER: 13, BACKSPACE: 8, UP: 38, DOWN: 40, ESCAPE: 27} | ||
function inputEvent (state, e) { | ||
mutableFocus() | ||
focusHook() | ||
if (textboxEvents[e.type]) { | ||
@@ -106,0 +106,0 @@ textboxEvents[e.type](state, e) |
17058
9
13
352
+ Addedvirtual-hyperscript@^4.5.0