8000 Copy paste in docs is broken · Issue #18 · formkit/drag-and-drop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Copy paste in docs is broken #18
Closed
@suspiciousRaccoon

Description

@suspiciousRaccoon

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0