If an Attached card has a Passive or Replacement ability that applies during the process of Detaching or a Triggered ability that triggers off of Detaching, that text exists and can be processed as it Detaches.
§ 725.2 Core Rules PDF (officieel)
§ 725 Inactive text can partially cease to be Inactive under specific circumstances and exceptions.