Skip to content

Commit

Permalink
fix: combo and multi empty class (#964)
Browse files Browse the repository at this point in the history
Co-authored-by: Lee Chase <lee.chase@uk.ibm.com>
  • Loading branch information
lee-chase and lee-chase authored Jul 25, 2020
1 parent 229759e commit beb2fdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/core/src/components/cv-combo-box/cv-combo-box.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
>
<input
ref="input"
:class="[`${carbonPrefix}--text-input`, { [`${carbonPrefix}--text-input--empty`]: dataInput.length === 0 }]"
:class="[
`${carbonPrefix}--text-input`,
{ [`${carbonPrefix}--text-input--empty`]: dataInput && dataInput.length === 0 },
]"
:aria-controls="uid"
aria-autocomplete="list"
role="combobox"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@
<template v-else>
<input
ref="input"
:class="[`${carbonPrefix}--text-input`, { [`${carbonPrefix}--text-input--empty`]: dataInput.length === 0 }]"
:class="[
`${carbonPrefix}--text-input`,
{ [`${carbonPrefix}--text-input--empty`]: dataInput && dataInput.length === 0 },
]"
:aria-controls="uid"
aria-autocomplete="list"
role="combobox"
Expand Down

0 comments on commit beb2fdb

Please sign in to comment.