Copy paste in docs is broken
suspiciousRaccoon opened this issue · comments
suspiciousRaccoon commented
If you select a code snippet from the docs and try to copy it and pasting it the identation breaks.
Tested in Firefox 123.0
https://drag-and-drop.formkit.com/#sortability
import React from "react";
import {
useDragAndDrop } from "@formkit/drag-and-drop/react";
export function
myComponent() {
const [
parent,
tapes] =
useDragAndDrop<HTMLUListElement, string>([
"Depeche Mode",
"Duran Duran",
"Pet Shop Boys",
"Kraftwerk",
"Tears for Fears",
"Spandau Ballet",
]);
return (
<
ul
ref={
parent}>
{
tapes.
map((
tape) => (
<
li
className="cassette"
data-label={
tape}
key={
tape}>
{
tape}
</
li>
))}
</
ul>
);
}
W1Real commented
Chrome Version 122.0.6261.129 (Official Build) (64-bit) shows the same broken behavior too.