Skip to content

Commit 6f354ac

Browse files
Merge pull request #5538 from kkachniarz220:patch-1
PiperOrigin-RevId: 618514516
2 parents ffc08d1 + d65fa02 commit 6f354ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dialog/internal/dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class Dialog extends LitElement {
160160
* Opens the dialog and fires a cancelable `open` event. After a dialog's
161161
* animation, an `opened` event is fired.
162162
*
163-
* Add an `autocomplete` attribute to a child of the dialog that should
163+
* Add an `autofocus` attribute to a child of the dialog that should
164164
* receive focus after opening.
165165
*
166166
* @return A Promise that resolves after the animation is finished and the

docs/components/dialog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Property | Attribute | Type | Default | Description
238238

239239
Method | Parameters | Returns | Description
240240
--- | --- | --- | ---
241-
`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.
241+
`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.
242242
`close` | `returnValue` | `Promise<void>` | Closes the dialog and fires a cancelable `close` event. After a dialog's animation, a `closed` event is fired.
243243

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

0 commit comments

Comments
 (0)