I'm trying to disable the input field on a row based on the input of another field in the same row. If the 'Property' input is populated, disable the 'Client', and if 'Client' is populated, disable 'Property'. These elements are part of a template that can change the number of rows that exist in the DOM.
I've tried to use the onchange event in each element to set the other to disabled in javascript, but accessing the row, the element, and then it's counter element to disable has proved troublesome.
Below is a code snippet of the first part of the html. Any help is appreciated.
<template>
<lightning-card title="Project Management">
<template for:each={userInput} for:item="item">
<div key={item} class="slds-grid slds-gutters slds-p-around_small slds-border_top">
<!-- RPM_Note__c -->
<!-- Notes_Category__c -->
<div class="slds-col slds-size_1-of-8">
<label>Category</label>
<lightning-combobox options={categoryOptions.data} value={item.category} data-category={item.id} variant="label-hidden"></lightning-combobox>
</div>
<div class="slds-col slds-size_1-of-8">
<lightning-record-edit-form object-api-name="Note__c">
<label>Property</label>
<lightning-input-field field-name="Property_Legal_Entity__c" value={item.propertyId} data-property={item.id} variant="label-hidden"></lightning-input-field>
</lightning-record-edit-form>
</div>
<div class="slds-col slds-size_1-of-8">
<lightning-record-edit-form object-api-name="Note__c">
<label>Client</label>
<lightning-input-field field-name="Client__c" value={item.client} data-client={item.id} variant="label-hidden"></lightning-input-field>
</lightning-record-edit-form>
</div>