Skip to content

Commit 6767b26

Browse files
committed
fix: checkbox pointer event
1 parent daacfb8 commit 6767b26

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.playwright/tests/enrichedTextPress.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ test.describe('EnrichedText press inside lists', () => {
160160
open: '<ol>',
161161
close: '</ol>',
162162
},
163-
// {
164-
// name: 'checkbox list',
165-
// open: '<ul data-type="checkbox">',
166-
// close: '</ul>',
167-
// },
163+
{
164+
name: 'checkbox list',
165+
open: '<ul data-type="checkbox">',
166+
close: '</ul>',
167+
},
168168
];
169169

170170
for (const c of listCases) {

src/web/EnrichedText.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@
271271
.et-view ul[data-type="checkbox"] > li {
272272
position: relative;
273273
list-style: none;
274-
pointer-events: none;
275274
min-height: max(1lh, var(--et-checkbox-box-size, 24px));
276275
}
277276

@@ -284,6 +283,7 @@
284283
height: var(--et-checkbox-box-size, 24px);
285284
margin: 0 var(--et-checkbox-gap-width, 16px) 0 0;
286285
flex-shrink: 0;
286+
pointer-events: none;
287287
accent-color: var(--et-checkbox-box-color, #0000ff);
288288
}
289289

@@ -293,7 +293,6 @@
293293
gap: 0;
294294
margin: 0;
295295
padding: 0;
296-
user-select: none;
297296
}
298297

299298
.et-view img {

0 commit comments

Comments
 (0)