mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Resolve #1733
This commit is contained in:
parent
6f4f6bfd03
commit
e0236ea52d
4 changed files with 11 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ ko.bindingHandlers['textInput'] = {
|
|||
elementValueBeforeEvent = timeoutHandle = undefined;
|
||||
|
||||
var elementValue = element.value;
|
||||
if (previousElementValue !== elementValue) {
|
||||
if (element.checkValidity() && previousElementValue !== elementValue) {
|
||||
// Provide a way for tests to know exactly which event was processed
|
||||
previousElementValue = elementValue;
|
||||
ko.expressionRewriting.writeValueToProperty(valueAccessor(), allBindings, 'textInput', elementValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue