Skip to content

Commit

Permalink
Minor updates to prop naming
Browse files Browse the repository at this point in the history
  • Loading branch information
morkro committed Jan 25, 2022
1 parent d53687c commit 69ba87d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export default {
- **Usage**:

```html
<a11y-dialog close-button-label="Close this super dialog">
<a11y-dialog close-button-label="Close dialog">
<!-- ... -->
</a11y-dialog>
```
Expand Down
8 changes: 5 additions & 3 deletions src/A11yDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@
},
},
},
emits: ['dialogRef'],
emits: ['dialog-ref'],
setup(props, { emit }) {
let dialog
const rootElement = ref(null)
Expand All @@ -133,7 +135,7 @@
rootElement.value,
portalTarget.value || props.appRoot
)
emit('dialogRef', dialog)
emit('dialog-ref', dialog)
}
onMounted(() => {
Expand All @@ -148,7 +150,7 @@
if (dialog) {
dialog.destroy()
}
emit('dialogRef')
emit('dialog-ref')
})
return {
Expand Down
1 change: 1 addition & 0 deletions src/Demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
}
},
assignDialogRef(dialog) {
console.log('ref', dialog)
this.dialog = dialog
},
// Tests using alertdialog role and opening modal
Expand Down

0 comments on commit 69ba87d

Please sign in to comment.