mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 19:22:27 +00:00
Make Select work how one would expect in forms
This commit is contained in:
1 parent
61fa001daf
commit
b2c0adec68
2 files changed
+8
No files matched your search
@@ -793,6 +793,10 @@ class Form {
|
||||
if (thing === "")
|
||||
continue;
|
||||
const input = this.names.get(thing);
|
||||
if (input instanceof SelectInput) {
|
||||
build[thing] = input.options[input.value];
|
||||
continue;
|
||||
}
|
||||
build[thing] = input.value;
|
||||
}
|
||||
if (this.fetchURL !== "") {
|
||||
|
||||
@@ -794,6 +794,10 @@ class Form implements OptionsElement<object>{
|
||||
for(const thing of this.names.keys()){
|
||||
if(thing==="") continue;
|
||||
const input=this.names.get(thing) as OptionsElement<any>;
|
||||
if(input instanceof SelectInput){
|
||||
build[thing]=input.options[input.value];
|
||||
continue;
|
||||
}
|
||||
build[thing]=input.value;
|
||||
}
|
||||
if(this.fetchURL!==""){
|
||||
|
||||
Reference in new issue
Block a user