From 26471cdca4b1bf57a7575d0191762738403cc79e Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 16 Sep 2024 22:40:53 -0400 Subject: [PATCH] chore: add inline comment for clarity --- es-ds-components/components/es-radio-button.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-ds-components/components/es-radio-button.vue b/es-ds-components/components/es-radio-button.vue index ebac52a23..355d3a2c5 100644 --- a/es-ds-components/components/es-radio-button.vue +++ b/es-ds-components/components/es-radio-button.vue @@ -24,6 +24,8 @@ function handleRadioButtonClick() { } } +// Similar to the API of https://bootstrap-vue.org/docs/components/form-radio#changing-the-option-field-names +// the value can be a string, number, or simple object. Avoid using complex types in values. // eslint-disable-next-line @typescript-eslint/no-explicit-any const model = defineModel(); const isChecked = computed(() => props.value === model.value);