Skip to content

Commit

Permalink
Refactor #5071
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jan 18, 2024
1 parent db19827 commit 8945d84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/lib/multiselect/MultiSelect.vue
Expand Up @@ -140,7 +140,7 @@
:data-p-focused="focusedOptionIndex === getOptionIndex(i, getItemOptions)"
:data-p-disabled="isOptionDisabled(option)"
>
<Checkbox :modelValue="isSelected(option)" :binary="true" :unstyled="unstyled" :pt="getCheckboxPTOptions(option, getItemOptions, i, 'itemCheckbox')">
<Checkbox :modelValue="isSelected(option)" :binary="true" :tabindex="-1" :unstyled="unstyled" :pt="getCheckboxPTOptions(option, getItemOptions, i, 'itemCheckbox')">
<template #icon="slotProps">
<component v-if="$slots.itemcheckboxicon" :is="$slots.itemcheckboxicon" :checked="slotProps.checked" :class="slotProps.class" />
<component
Expand Down
2 changes: 1 addition & 1 deletion components/lib/tree/TreeNode.vue
Expand Up @@ -26,7 +26,7 @@
<component v-else :is="node.collapsedIcon ? 'span' : 'ChevronRightIcon'" :class="cx('togglerIcon')" v-bind="getPTOptions('togglerIcon')" />
</template>
</button>
<Checkbox v-if="checkboxMode" :modelValue="checked" :binary="true" :class="cx('nodeCheckbox')" :unstyled="unstyled" :pt="getPTOptions('nodeCheckbox')" :data-p-checked="checked" :data-p-partialchecked="partialChecked">
<Checkbox v-if="checkboxMode" :modelValue="checked" :binary="true" :class="cx('nodeCheckbox')" :tabindex="-1" :unstyled="unstyled" :pt="getPTOptions('nodeCheckbox')" :data-p-checked="checked" :data-p-partialchecked="partialChecked">
<template #icon="slotProps">
<component v-if="templates['checkboxicon']" :is="templates['checkboxicon']" :checked="slotProps.checked" :partialChecked="partialChecked" :class="slotProps.class" />
<component v-else :is="checked ? 'CheckIcon' : partialChecked ? 'MinusIcon' : null" :class="slotProps.class" v-bind="getPTOptions('nodeCheckbox.icon')" />
Expand Down
1 change: 1 addition & 0 deletions components/lib/treetable/BodyCell.vue
Expand Up @@ -17,6 +17,7 @@
:binary="true"
:class="cx('rowCheckbox')"
@change="toggleCheckbox"
:tabindex="-1"
:unstyled="unstyled"
:pt="getColumnCheckboxPT('rowCheckbox')"
:data-p-highlight="checked"
Expand Down

0 comments on commit 8945d84

Please sign in to comment.