forked from MapComplete/MapComplete
Fixed erronous clearing of value-fields in tagmappings, (hopefully) fixes #131
This commit is contained in:
parent
6509358f84
commit
c53ccb7bae
6 changed files with 20 additions and 7 deletions
|
@ -37,7 +37,6 @@ export class TextField extends InputElement<string> {
|
|||
self.IsSelected.setData(true)
|
||||
});
|
||||
this.value.addCallback((t) => {
|
||||
console.log("Setting actual value to", t);
|
||||
const field = document.getElementById("txt-"+this.id);
|
||||
if (field === undefined || field === null) {
|
||||
return;
|
||||
|
|
|
@ -271,7 +271,7 @@ export default class ValidatedTextField {
|
|||
country?: string
|
||||
}): InputElement<T> {
|
||||
let textField: InputElement<string>;
|
||||
if (options.type) {
|
||||
if (options?.type) {
|
||||
textField = ValidatedTextField.InputForType(options.type, options);
|
||||
} else {
|
||||
textField = new TextField(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue