Skip to content

Commit

Permalink
Examples: Add #11839 repro to vue-kitchen-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Aug 31, 2020
1 parent a000606 commit 4255133
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
@@ -0,0 +1,14 @@
<template>
<div>Disabled: {{disabled}}</div>
</template>

<script>
export default {
props: {
disabled: Boolean,
},
mounted() {
console.log(this.disabled); // notice this line
},
};
</script>
@@ -0,0 +1,15 @@
import Comp from './component.vue';

export default {
title: 'Issues/11839 undefined boolean',
component: Comp,
};

export const Primary = (args, { argTypes }) => {
return {
props: Object.keys(argTypes),
components: { Comp },
// template: '<Comp />', // this will log out `false`
template: '<Comp v-bind="$props" />', // this will log out `undefined`
};
};

0 comments on commit 4255133

Please sign in to comment.