Skip to content

Commit

Permalink
fix: select stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisi Linhart committed Oct 25, 2023
1 parent c298c8a commit 4a64684
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Select/Select.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export const WithMinibrowser = (args) => ({

methods: {
onSelectItem(item) {
if (!item.items.length) {
if (!item?.items?.length) {
this.internalValue = item.label

this.$refs.select.hideList()
Expand Down Expand Up @@ -653,7 +653,7 @@ WithOptionDisabled.parameters = {
export const WithInlineLabel = SelectTemplate.bind({})

WithInlineLabel.args = {
inlineLabel: 'Item:'
inlineLabel: 'Item:',
}

WithInlineLabel.parameters = {
Expand All @@ -674,7 +674,8 @@ MultipleWithCountLabels.args = {
MultipleWithCountLabels.parameters = {
docs: {
description: {
story: 'Use the `show-count` property to group the selected items in a counter.',
story:
'Use the `show-count` property to group the selected items in a counter.',
},
},
}
}

0 comments on commit 4a64684

Please sign in to comment.