---
id: fast-foundation.disclosure.ontoggle
title: Disclosure.onToggle() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [Disclosure](./fast-foundation.disclosure.md) &gt; [onToggle](./fast-foundation.disclosure.ontoggle.md)

## Disclosure.onToggle() method

Update the aria attr and fire `toggle` event

<b>Signature:</b>

```typescript
protected onToggle(): void;
```
<b>Returns:</b>

void
