material-input
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -121,4 +121,4 @@ 'use strict'; | ||
}.bind(this)); | ||
// pass on value when user enters content | ||
this.$input.addEventListener('input', function (e) { | ||
// submit on enters | ||
this.$input.addEventListener('keydown', function (e) { | ||
if (e.keyCode === 13) { | ||
@@ -133,2 +133,5 @@ if (this.$form.checkValidity()) { | ||
} | ||
}.bind(this)); | ||
// pass on value when user enters content | ||
this.$input.addEventListener('input', function (e) { | ||
this._value(this.$input.value); | ||
@@ -135,0 +138,0 @@ }.bind(this)); |
{ | ||
"name": "material-input", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "An easy drop-in material-input solution as a custom element", | ||
@@ -5,0 +5,0 @@ "main": "src/material-input.js", |
@@ -260,4 +260,4 @@ 'use strict'; | ||
}.bind(this)); | ||
// pass on value when user enters content | ||
this.$input.addEventListener('input', function(e){ | ||
// submit on enters | ||
this.$input.addEventListener('keydown', function(e){ | ||
if(e.keyCode === 13){ | ||
@@ -272,2 +272,5 @@ if(this.$form.checkValidity()){ | ||
} | ||
}.bind(this)); | ||
// pass on value when user enters content | ||
this.$input.addEventListener('input', function(e){ | ||
this._value(this.$input.value); | ||
@@ -274,0 +277,0 @@ }.bind(this)); |
Sorry, the diff of this file is not supported yet
952448
18181