Within my Bootstrap 4 input group, there is a prepended title along with two input fields. The structure looks like this:
<div class="input-group" (click)="openDoc()">
<div class="input-group-prepend input-group-prepend-split rounded-0">
<label class="input-group-text rounded-0 bg-white">Name</label>
</div>
<input type="text" class="form-control rounded-0" value="{{_transaction.originalDoc?.name}}" disabled>
<input type="text" class="form-control rounded-0 link" value="{{_transaction.doc?.name}}" disabled>
</div>
I am trying to trigger the (click)="openDoc()"
event specifically on the second input field that displays {{_transaction.doc?.name}}
. However, I'm facing difficulty as the event only fires when applied to the wrapper input-group. It seems like the element is blocking the input. Is there any CSS workaround or Bootstrap solution that can help me overcome this issue?