[FIX] web: fix keyboard related crash in client actions

This commit is contained in:
Vincent Schippefilt
2018-04-16 09:35:33 +02:00
parent 9b2b5eddd4
commit 65d8a082df
4 changed files with 73 additions and 6 deletions
@@ -319,7 +319,9 @@ var InputField = DebouncedField.extend({
|| (ev.data.direction === "right" && (selecting || input.selectionStart !== input.value.length))) {
ev.stopPropagation();
}
if (ev.data.direction ==='next' && this.attrs.modifiersValue.required) {
if (ev.data.direction ==='next' &&
this.attrs.modifiersValue &&
this.attrs.modifiersValue.required) {
if (!this.$input.val()){
this.setInvalidClass();
ev.stopPropagation();