-
Notifications
You must be signed in to change notification settings - Fork 14
refactor: add enforce strict value for combobox #5572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🧪 Review environmenthttps://is4rxr6doxcoyg6ou34kjsh2u40kauzp.lambda-url.ca-central-1.on.aws/ |
...ocale]/(form administration)/form-builder/[id]/components/dialogs/MoreDialog/StrictValue.tsx
Show resolved
Hide resolved
@dsamojlenko do you have an issue open for this ? |
const { t } = useTranslation("form-builder"); | ||
|
||
// ⚠️ Early return if not combobox | ||
if (item.type !== "combobox") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could use the enum FormElementTypes.combobox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to #5010 |
🧪 Review environmenthttps://saxgbhsvtoh6nvfjze4aaobl2i0vuvfm.lambda-url.ca-central-1.on.aws/ |
@@ -1415,6 +1415,11 @@ | |||
}, | |||
"en": "English", | |||
"fr": "Français", | |||
"strictValue": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anikbrazeau couple of missing strings here if you get a chance
Summary | Résumé
See: https://cds-snc.freshdesk.com/a/tickets/22779
Currently searchable list allows a user to input arbitrary text.
For example a list of colours
If the user types
ye
and doesn't "select" a value from the list provided the input will captureye
and notyellow
.This update enforces that the user picks or types a full value from the list -- if they don't the typed value will clear.
See:
strict-value.mp4