diff --git a/src/layouts/scheduling/waitlist-question/waitlist-question.vue b/src/layouts/scheduling/waitlist-question/waitlist-question.vue index 61c54dd86..9ae96eaa7 100644 --- a/src/layouts/scheduling/waitlist-question/waitlist-question.vue +++ b/src/layouts/scheduling/waitlist-question/waitlist-question.vue @@ -10,18 +10,17 @@ fontWeight="600" class="waitlist-label" marginTopSizeOverride="0" /> - - -
- - +
+
+
+
+ + +
@@ -66,7 +65,7 @@ export default { }, waitlistThresholdDays() { return this.hasSetting(experimentSettings.WAITLIST_THRESHOLD_DAYS) - ? parseInt(this.getSettingValue(experimentSettings.WAITLIST_THRESHOLD_DAYS)) + ? parseInt(this.getSettingValue(experimentSettings.WAITLIST_THRESHOLD_DAYS), 10) : 0; }, daysUntilEarliestAvailableDate() { @@ -88,7 +87,10 @@ export default { handleContainerClick(event) { // The checkbox's own label/input already toggles localValue natively, // so ignore clicks that originate inside it to avoid double-toggling. - if (event.target.closest(".ui-checkbox")) return; + // Checking against our own wrapper element (rather than an internal + // class name owned by checkboxQuestion) keeps this decoupled from + // that component's markup. + if (this.$refs.checkboxWrapper?.contains(event.target)) return; this.localValue = !this.localValue; }, },