Skip to content

Commit 66c88fc

Browse files
committed
fix: update COLUMN_CONFIGS to handle input and composition events more accurately
1 parent fee9092 commit 66c88fc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/utils/eventHelpers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,15 @@ export const COLUMN_CONFIGS: ColumnConfig[] = [
175175
"compositionend",
176176
],
177177
accessor: (e) => {
178+
// Only show data for input and composition events
178179
if (e.eventType === "input" || e.eventType === "beforeinput") {
179180
return (e as InputEventData).data || "";
180181
}
181-
return (e as CompositionEventData).data || "";
182+
if (e.eventType === "compositionstart" || e.eventType === "compositionupdate" || e.eventType === "compositionend") {
183+
return (e as CompositionEventData).data || "";
184+
}
185+
// Return null for keyboard events so they show as empty
186+
return null;
182187
},
183188
formatter: (value) => (value === null ? "" : JSON.stringify(value)),
184189
},

0 commit comments

Comments
 (0)