I'm trying to disable some surrounding components based on the mode
attribute within lightning:recordForm
(i.e. anytime I'm in edit
mode, I'd like to disable a lightning:buttonMenu
that sits just outside the lightning:recordForm
).
I'm using an aura attribute v.formMode
to store the default mode "view", but it doesn't seem to update itself when I double click in the UI to make inline edits.
I looked through both lightning:recordForm and lightning:recordEditForm documentation, but there's no special event to catch when the mode is changing, and it doesn't seem to auto-update the binded aura variable.
<lightning:recordForm
aura:id="recordForm"
recordId="{!v.recordId}"
objectApiName="Case"
fields="{!v.fields}"
columns="2"
mode="{! v.formMode }" />
Any ideas?