select

Better select widgets in vanilla javascript.  https://p.ce9e.org/select/demo/
git clone https://git.ce9e.org/select.git

commit
5b91f68f2a5ae2a708561459bb064ec9e51f08ad
parent
e9d2f7d8fc1ef394aadcf4f08ec42cb738a250c1
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-03-25 14:43
forward original validation on blur

Diffstat

M select.js 3 +++

1 files changed, 3 insertions, 0 deletions


diff --git a/select.js b/select.js

@@ -212,6 +212,9 @@ class Select {
  212   212 			if (this.indexMap.length) {
  213   213 				this.setValue(this.indexMap[this.focus]);
  214   214 			}
   -1   215 			if (!this.original.checkValidity()) {
   -1   216 				this.input.setCustomValidity(this.original.validationMessage);
   -1   217 			}
  215   218 			this.close();
  216   219 		}
  217   220 	}