Skip to content

Commit 84e0bfa

Browse files
authored
fix(tag): 修复标签可选中不生效问题 (#3688)
1 parent a68ee02 commit 84e0bfa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/renderless/src/tag/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const handleClose =
2424
export const handleClick =
2525
({ emit, props, parent, state }: Pick<ITagRenderlessParams, 'emit' | 'props' | 'parent' | 'state'>) =>
2626
(event: Event) => {
27-
// pc端没有selectable属性,不能以取反判断,会阻止pc的点击事件
28-
if (props.selectable || props.disabled) return
27+
if (props.disabled) return
2928

3029
parent.$parent && parent.$parent.tagSelectable && event.stopPropagation()
3130
state.selected = !state.selected

0 commit comments

Comments
 (0)