# "close" event

> Our window closed.

Source: https://docs.tryyoursize.com/reference/web/event-close/

*Event* · `@tryyoursize/sdk`

Our window closed. With unsaved measurements, the window asks the shopper first.

```ts
close: { elementType: ElementType };
```

## Payload

- **`elementType`** (`"fit" | "button" | "sizeGuide"`, required): Which element.

## Example

**JavaScript**

```js
guide.on("close", () => sizePicker.focus());
```

**React**

```tsx
<SizeGuide product="SKU-123" onClose={() => pickerRef.current?.focus()} />
```
