File size: 907 Bytes
b39afbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="input-control-div">
  <label
    :for="controlUid"
    class="sr-only text-xs text-gray-400"
    x-text="title"
  ></label>

</div>
<div class="input-control-div">
  <textarea
    x-data="inputUtils"
    x-init="textareaAutoResize($el)"
    @input="textareaAutoResize($el)"
    :id="controlUid"
    :disabled="opts.readonly"
    :value="value"
    :placeholder="opts.placeholder || title"
    @blur="change($event)"
    @dblclick.stop="$event"
    @pointerdown.stop="$event"
    @pointermove.stop="$event"
    @paste.stop="$event"
    class="text-sm bg-white border rounded-md border-neutral-300 ring-offset-background placeholder:text-neutral-500 focus:border-neutral-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-400 disabled:cursor-not-allowed disabled:opacity-50    "
    :class="{
         'ring-red-300 ring-2': required && !hasValue(),
        } "
  />
</div>