fix datalist and link redraw

This commit is contained in:
Leo Horie 2014-05-06 22:26:30 -04:00
parent da69bc4fa0
commit deeb73973f
3 changed files with 20 additions and 3 deletions

View file

@ -13,10 +13,15 @@ app.controller = function() {
app.view = function(ctrl) {
return m("body", [
m("h1", ["Title: ", ctrl.title()]),
m("input", {
m("input[list=data]", {
onkeyup: m.withAttr("value", ctrl.title),
value: ctrl.title()
}),
m("datalist#data", [
m("option", "John"),
m("option", "Bob"),
m("option", "Mary")
]),
m("br"),
m("textarea", {
onkeyup: m.withAttr("value", ctrl.title),