fix: typing card description removes placeholder
This commit is contained in:
@@ -124,7 +124,8 @@ export default function CardPage() {
|
|||||||
<form onSubmit={formik.handleSubmit} className="w-full space-y-6">
|
<form onSubmit={formik.handleSubmit} className="w-full space-y-6">
|
||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
<ContentEditable
|
<ContentEditable
|
||||||
html={formik.values.description || "Add description..."}
|
placeholder="Add description..."
|
||||||
|
html={formik.values.description}
|
||||||
disabled={false}
|
disabled={false}
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
formik.setFieldValue("description", e.target.value)
|
formik.setFieldValue("description", e.target.value)
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
[contenteditable=true]:empty:before {
|
||||||
|
content: attr(placeholder);
|
||||||
|
display: block;
|
||||||
|
color: #707070;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user