+ Start a Discussion
Base Line 7Base Line 7 

Inverse of Lightning tab onactive?

There is a lightning input element in the body of a tab of my custom standalone app and I would like to have any values in the input element cleared once I move to another tab or any other part of the application. Since there is only an onactive but no "inactive" attribute for a tab, is there a workaround for achieving this? I considered using the onselect attribute of lightning tabset but since this tab is in a tabset which is nested in another tabset and so on, I would have to use multiple methods and attributes to accomplish the task and this does not seem efficient. Any advice or help would be greatly appreciated.