Skip to content

Commit 534c167

Browse files
cloudchamb3rwxiaoguang
authored andcommitted
Fix checkbox bug on private/archive filter (go-gitea#32236)
fix go-gitea#32235 --------- Co-authored-by: wxiaoguang <[email protected]>
1 parent 494017e commit 534c167

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/components/DashboardRepoList.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ export default sfc; // activate the IDE's Vue plugin
362362
<div class="menu">
363363
<a class="item" @click="toggleArchivedFilter()">
364364
<div class="ui checkbox" ref="checkboxArchivedFilter" :title="checkboxArchivedFilterTitle">
365-
<!--the "hidden" is necessary to make the checkbox work without Fomantic UI js,
365+
<!--the "tw-pointer-events-none" is necessary to prevent the checkbox from handling user's input,
366366
otherwise if the "input" handles click event for intermediate status, it breaks the internal state-->
367-
<input type="checkbox" class="hidden" v-bind.prop="checkboxArchivedFilterProps">
367+
<input type="checkbox" class="tw-pointer-events-none" v-bind.prop="checkboxArchivedFilterProps">
368368
<label>
369369
<svg-icon name="octicon-archive" :size="16" class-name="tw-mr-1"/>
370370
{{ textShowArchived }}
@@ -373,7 +373,7 @@ export default sfc; // activate the IDE's Vue plugin
373373
</a>
374374
<a class="item" @click="togglePrivateFilter()">
375375
<div class="ui checkbox" ref="checkboxPrivateFilter" :title="checkboxPrivateFilterTitle">
376-
<input type="checkbox" class="hidden" v-bind.prop="checkboxPrivateFilterProps">
376+
<input type="checkbox" class="tw-pointer-events-none" v-bind.prop="checkboxPrivateFilterProps">
377377
<label>
378378
<svg-icon name="octicon-lock" :size="16" class-name="tw-mr-1"/>
379379
{{ textShowPrivate }}

0 commit comments

Comments
 (0)