Skip to content

Commit

Permalink
Merge pull request #5538 from kkachniarz220:patch-1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 618514516
  • Loading branch information
copybara-github committed Mar 24, 2024
2 parents ffc08d1 + d65fa02 commit 6f354ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dialog/internal/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class Dialog extends LitElement {
* Opens the dialog and fires a cancelable `open` event. After a dialog's
* animation, an `opened` event is fired.
*
* Add an `autocomplete` attribute to a child of the dialog that should
* Add an `autofocus` attribute to a child of the dialog that should
* receive focus after opening.
*
* @return A Promise that resolves after the animation is finished and the
Expand Down
2 changes: 1 addition & 1 deletion docs/components/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ Property | Attribute | Type | Default | Description

Method | Parameters | Returns | Description
--- | --- | --- | ---
`show` | _None_ | `Promise<void>` | Opens the dialog and fires a cancelable `open` event. After a dialog's animation, an `opened` event is fired.<br>Add an `autocomplete` attribute to a child of the dialog that should receive focus after opening.
`show` | _None_ | `Promise<void>` | Opens the dialog and fires a cancelable `open` event. After a dialog's animation, an `opened` event is fired.<br>Add an `autofocus` attribute to a child of the dialog that should receive focus after opening.
`close` | `returnValue` | `Promise<void>` | Closes the dialog and fires a cancelable `close` event. After a dialog's animation, a `closed` event is fired.

<!-- mdformat on(autogenerated might break rendering in catalog) -->
Expand Down

0 comments on commit 6f354ac

Please sign in to comment.