bcgov / bcgov/entity

sbc-common-components: update BaseAddress to be validatable

Open
#11,737 2 comments 0 reactions 0 assignees View on GitHub
ENTITY - DO NOT USE
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

It would be ideal if BaseAddress was validatable so that a form wrapper could tell if it was valid or not.

Currently we have to explicitly validate the BaseAddress component and then use logic to see if it's invalid, and this still doesn't cause the form to be invalid without a work-around.

Ideally, we could just drop a BaseAddress component in a Vuetify form and the form and its children would validate (and reset!) automatically and correctly according to the Validatable API. (This should also support lazy-validation.)

https://stackoverflow.com/questions/65410355/how-to-create-a-vform-component-with-validation-functionality-like-vuetify-in-vu

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the BaseAddress component and reviewing how Vuetify's Validatable API handles validation, reset, and lazy-validation. Done means a BaseAddress placed in a Vuetify form participates in form and child validation and reset behavior without an explicit validation workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.