Skip to content

Commit

Permalink
Fixing validation issue messages not disapearing on address. (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfekete committed Jun 10, 2024
1 parent 54dbf07 commit ff95f7e
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,33 @@ const regions = computed(() => {
const addrAutoCompleted = (selectedAddr: BtrAddressI) => {
Object.assign(address.value, selectedAddr)
formBus?.emit({ type: 'blur', path: props.name + '.country' })
formBus?.emit({ type: 'change', path: props.name + '.country' })
setTimeout(() => {
formBus?.emit({ type: 'blur', path: props.name + '.line1' })
formBus?.emit({ type: 'change', path: props.name + '.line1' })
}, 10)
setTimeout(() => {
formBus?.emit({ type: 'blur', path: props.name + '.line2' })
formBus?.emit({ type: 'change', path: props.name + '.line2' })
}, 20)
setTimeout(() => {
formBus?.emit({ type: 'blur', path: props.name + '.city' })
formBus?.emit({ type: 'change', path: props.name + '.city' })
}, 30)
setTimeout(() => {
formBus?.emit({ type: 'blur', path: props.name + '.postalCode' })
formBus?.emit({ type: 'change', path: props.name + '.postalCode' })
}, 40)
setTimeout(() => {
formBus?.emit({ type: 'blur', path: props.name + '.region' })
formBus?.emit({ type: 'change', path: props.name + '.region' })
}, 50)
}
</script>

0 comments on commit ff95f7e

Please sign in to comment.