select

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

commit
9dd9a29614ded627cb62a17fbf2d38a748453aa3
parent
36c44eb349c4581cc9b554103bdc0f64d6e758f9
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-09-02 05:36
lint

Diffstat

M select.js 4 ++--

1 files changed, 2 insertions, 2 deletions


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

@@ -237,7 +237,7 @@ export class Select {
  237   237 		}
  238   238 	}
  239   239 
  240    -1 	oninput(event) {
   -1   240 	oninput() {
  241   241 		if (this.input.value) {
  242   242 			this.open(false);
  243   243 		} else {
@@ -248,7 +248,7 @@ export class Select {
  248   248 		this.updateValidity();
  249   249 	}
  250   250 
  251    -1 	onblur(event) {
   -1   251 	onblur() {
  252   252 		if (!this.input.value) {
  253   253 			if (!this.original.multiple) {
  254   254 				this.original.value = '';