Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy paste in docs is broken #18

Open
suspiciousRaccoon opened this issue Feb 26, 2024 · 1 comment
Open

Copy paste in docs is broken #18

suspiciousRaccoon opened this issue Feb 26, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@suspiciousRaccoon
Copy link

suspiciousRaccoon commented Feb 26, 2024

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>
  );
}
@sashamilenkovic sashamilenkovic added the documentation Improvements or additions to documentation label Mar 5, 2024
@W1Real
Copy link

W1Real commented Mar 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants