button.vue: use null as default for props.to
Some checks failed
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/pr/lint-backend Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint-client Pipeline failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/pr/test Pipeline failed

This commit is contained in:
Norm 2022-08-20 13:37:56 -04:00
parent af3b39df5f
commit fd565f842c
Signed by: norm
GPG key ID: 7123E30E441E80DE

View file

@ -35,9 +35,7 @@ const props = withDefaults(defineProps<{
rounded?: boolean;
inline?: boolean;
link?: boolean;
// to should only be defined when link is true
// eslint-disable-next-line vue/require-default-prop
to?: string;
to?: string | null;
autofocus?: boolean;
wait?: boolean;
danger?: boolean;
@ -48,6 +46,7 @@ const props = withDefaults(defineProps<{
gradate: false,
rounded: false,
inline: false,
to: null,
link: false,
autofocus: false,
wait: false,