Closed spacecat closed 2 weeks ago
I have created a new next.js app by using npx create-next-app@latest and then I added this:
npx create-next-app@latest
"use client"; import EasyEdit, { Types } from "react-easy-edit"; export default function Home() { const save = (value: string) => { console.log(value); }; const cancel = () => { console.log("Cancelled"); }; return ( <div> <main> <EasyEdit type={Types.TEXT} onSave={save} onCancel={cancel} saveButtonLabel="Save Me" cancelButtonLabel="Cancel Me" attributes={{ name: "awesome-input", id: 1 }} instructions="Star this repo!" editMode={true} /> </main> </div> ); }
but it's not working. I'm expecting the textbox to become editable when I have editMode set to true. Any ideas?
editMode
true
Oh, I see... the property was changed to isEditing.
isEditing
https://github.com/giorgosart/react-easy-edit/pull/202
I have created a new next.js app by using
npx create-next-app@latest
and then I added this:but it's not working. I'm expecting the textbox to become editable when I have
editMode
set totrue
. Any ideas?