fix:지출품의서 사용목적 textarea 동적 높이 조절
This commit is contained in:
@@ -63,6 +63,9 @@ class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-
|
||||
<div class="mb-4">
|
||||
<label class="block text-xs font-medium text-gray-600 mb-1">사용목적 <span class="text-red-500">*</span></label>
|
||||
<textarea x-model="formData.purpose" rows="2" placeholder="지출 사유를 상세히 기재해 주세요."
|
||||
x-init="$nextTick(() => { $el.style.height = 'auto'; $el.style.height = $el.scrollHeight + 'px'; })"
|
||||
@input="$el.style.height = 'auto'; $el.style.height = $el.scrollHeight + 'px'"
|
||||
style="overflow-y: hidden; resize: none;"
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user