> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# newDrillToSameDashboardHandler()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/eventHandlers/drillToSameDashboardHandlerFactory.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Event handler with the default implementation for drill to the same dashboard.

When [IDashboardDrillToDashboardResolved](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboarddrilltodashboardresolved/index.md) event is fired and contains dashboard ref that matches the provided dashboard ref, or dashboard ref in the event is missing, it sets relevant drill intersection filters to the current dashboard.

Note that only filters that are already stored in the dashboard filter context will be applied (attribute filters that are not visible in the filter bar will not be applied).

**Signature:**

```typescript
newDrillToSameDashboardHandler: (dashboardRef: ObjRef) => DashboardEventHandler<IDashboardDrillToDashboardResolved>
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| dashboardRef | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | reference to the current dashboard |

**Returns:**

[DashboardEventHandler](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.dashboardeventhandler/index.md)&lt;[IDashboardDrillToDashboardResolved](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idashboarddrilltodashboardresolved/index.md)&gt;

event handler
