You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The property focusOn is missing for DialogConfig in buefy/types/components.d.ts. I have lint errors when I'm trying to use this property.
Object literal may only specify known properties, and 'focusOn' does not exist in type 'DialogConfig'.
Steps to reproduce
Use Vue and Typescript
Use $dialog plugin to create a dialog
Set the property focusOn to focus on cancel
Run tslint
ex.
this.$dialog.confirm({
title: 'Confirmation',
message: `This will delete the universe. Do you really want to do this?`,
cancelText: 'Nope, sorry',
confirmText: 'Sure!',
type: 'is-danger',
hasIcon: true,
focusOn: 'cancel',
onConfirm: () => this.deleteUniverse(),
});
Expected behavior
Linter should be OK with this.
Actual behavior
Linter is displaying an error:
Argument of type '{ title: string; message: string; cancelText: string; confirmText: string; type: string; hasIcon: true; focusOn: string; onConfirm: () => void; }' is not assignable to parameter of type 'DialogConfig'.
Object literal may only specify known properties, and 'focusOn' does not exist in type 'DialogConfig'.
The text was updated successfully, but these errors were encountered:
Overview of the problem
Buefy version: 0.7.5
Vuejs version: 2.6.10
Description
The property
focusOn
is missing for DialogConfig in buefy/types/components.d.ts. I have lint errors when I'm trying to use this property.Steps to reproduce
focusOn
to focus on cancelex.
Expected behavior
Linter should be OK with this.
Actual behavior
Linter is displaying an error:
The text was updated successfully, but these errors were encountered: