Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the missing checkbox labels #4527

Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
</template>
<template #item="{ item }">
<Checkbox :key="item.id" :input-value="value" :value="item.id" class="mt-0">
<template #label>
<VTooltip bottom lazy>
<template #activator="{ on }">
<div class="text-truncate" style="width: 250px;" v-on="on">
{{ item.name }}
</div>
</template>
<span>{{ item.name }}</span>
</VTooltip>
</template>
<VTooltip bottom lazy>
<template #activator="{ on }">
<div class="text-truncate" style="width: 250px;" v-on="on">
{{ item.name }}
</div>
</template>
<span>{{ item.name }}</span>
</VTooltip>
</Checkbox>
</template>
</VAutocomplete>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
{{ getText(item) }}
</VChip>
</template>
<template #item="{ item, tile }">
<Checkbox v-bind="tile.props" class="ma-0">
<template #label>
<span :class="{ notranslate }" :style="getEllipsisStyle()" dir="auto">
{{ getText(item) }}
</span>
</template>
</Checkbox>
<template #item="{ item }">
<KCheckbox
:checked="selections.includes(item)"
:label="getText(item)"
:value="item"
:style="getEllipsisStyle()"
:ripple="false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't a ripple prop for KCheckbox. Also, it wouldn't seem this is preserving the notranslate class?

:class="{ notranslate }"
/>
</template>
</VSelect>
</template>
Expand All @@ -38,12 +39,11 @@

<script>

import Checkbox from './Checkbox';
import DropdownWrapper from './DropdownWrapper';

export default {
name: 'MultiSelect',
components: { Checkbox, DropdownWrapper },
components: { DropdownWrapper },
// $attrs are rebound to a descendent component
inheritAttrs: false,
props: {
Expand Down