Selectable table cells each installed a window-level gesture recognizer, causing every touch to fan out across the entire table. Keep prose selectable while rendering iOS table text without selection.
15 lines
424 B
TypeScript
15 lines
424 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { iosMarkdownTextIsSelectable } from "./markdown-text-selection";
|
|
|
|
describe("markdown text selection", () => {
|
|
it("uses plain text only for iOS table cells", () => {
|
|
expect({
|
|
tableCell: iosMarkdownTextIsSelectable("table-cell"),
|
|
prose: iosMarkdownTextIsSelectable("prose"),
|
|
}).toEqual({
|
|
tableCell: false,
|
|
prose: true,
|
|
});
|
|
});
|
|
});
|