From 26c0a8b533029b3f0d14a023dac02867efc7170e Mon Sep 17 00:00:00 2001 From: tristan Date: Wed, 3 Jun 2026 15:24:28 +0200 Subject: [PATCH] fix(ui) : cursor-default readonly TextArea + test chevron readonly Autocomplete Co-Authored-By: Claude Opus 4.8 (1M context) --- app/components/malio/input/InputAutocomplete.test.ts | 1 + app/components/malio/input/InputTextArea.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/malio/input/InputAutocomplete.test.ts b/app/components/malio/input/InputAutocomplete.test.ts index 9b17a97..596896e 100644 --- a/app/components/malio/input/InputAutocomplete.test.ts +++ b/app/components/malio/input/InputAutocomplete.test.ts @@ -536,5 +536,6 @@ describe('MalioInputAutocomplete', () => { const wrapper = mountComponent({label: 'Champ', readonly: true, modelValue: 'fr', options, iconName: 'mdi:magnify', iconPosition: 'left'}) expect(wrapper.get('label').classes()).toContain('text-black') expect(wrapper.get('[data-test="icon-left"]').classes()).toContain('text-black') + expect(wrapper.get('[data-test="chevron"]').classes()).toContain('text-black') }) }) diff --git a/app/components/malio/input/InputTextArea.vue b/app/components/malio/input/InputTextArea.vue index 018f2d1..dd24184 100644 --- a/app/components/malio/input/InputTextArea.vue +++ b/app/components/malio/input/InputTextArea.vue @@ -9,7 +9,7 @@ class="floating-input peer w-full border bg-white pl-3 pr-3 py-1 outline-none placeholder:text-transparent overflow-auto" :class="[ isReadonly ? 'border-black' : (isFilled ? 'border-black' : 'border-m-muted'), - disabled ? 'cursor-not-allowed text-black/60 border-m-muted' : 'cursor-text', + disabled ? 'cursor-not-allowed text-black/60 border-m-muted' : (isReadonly ? 'cursor-default' : 'cursor-text'), hasError ? 'border-m-danger focus:border-m-danger' : hasSuccess