Skip to content

Commit

Permalink
Merge pull request #2636 from nestorrente/patch-1
Browse files Browse the repository at this point in the history
Add disable class to the outer div of DTHeaderCheckbox
  • Loading branch information
tugcekucukoglu authored Jun 14, 2022
2 parents e49103d + 8594715 commit 07e2eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datatable/HeaderCheckbox.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="['p-checkbox p-component', {'p-checkbox-focused': focused}]" @click="onClick" @keydown.space.prevent="onClick">
<div :class="['p-checkbox p-component', {'p-checkbox-focused': focused, 'p-disabled': $attrs.disabled}]" @click="onClick" @keydown.space.prevent="onClick">
<div ref="box" :class="['p-checkbox-box p-component', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]"
role="checkbox" :aria-checked="checked" :tabindex="$attrs.disabled ? null : '0'" @focus="onFocus($event)" @blur="onBlur($event)">
<span :class="['p-checkbox-icon', {'pi pi-check': checked}]"></span>
Expand Down

0 comments on commit 07e2eae

Please sign in to comment.