formkit / drag-and-drop

Home Page:https://drag-and-drop.formkit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy paste in docs is broken

suspiciousRaccoon opened this issue · comments

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>
  );
}

Chrome Version 122.0.6261.129 (Official Build) (64-bit) shows the same broken behavior too.