forked from MapComplete/MapComplete
Add QR-code to all popups, add direction indicator to popup and visual feedback, make reviews accessible to screenreaders (both to read them and to make them)
This commit is contained in:
parent
5567869bb4
commit
bfd818cb38
33 changed files with 415 additions and 98 deletions
|
@ -57,7 +57,11 @@
|
|||
validator = Validators.get(type ?? "string")
|
||||
|
||||
_placeholder = placeholder ?? validator?.getPlaceholder() ?? type
|
||||
feedback?.setData(validator?.getFeedback(_value.data, getCountry))
|
||||
if(_value.data?.length > 0){
|
||||
feedback?.setData(validator?.getFeedback(_value.data, getCountry))
|
||||
}else{
|
||||
feedback?.setData(undefined)
|
||||
}
|
||||
|
||||
initValueAndDenom()
|
||||
}
|
||||
|
@ -65,9 +69,14 @@
|
|||
function setValues() {
|
||||
// Update the value stores
|
||||
const v = _value.data
|
||||
if (!validator?.isValid(v, getCountry) || v === "") {
|
||||
if(v === ""){
|
||||
value.setData(undefined)
|
||||
feedback.setData(undefined)
|
||||
return
|
||||
}
|
||||
if (!validator?.isValid(v, getCountry)) {
|
||||
feedback?.setData(validator?.getFeedback(v, getCountry))
|
||||
value.setData("")
|
||||
value.setData(undefined)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue