-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Block Library - Post Comment Content]: Fix block's edit function #35190
Conversation
return ( | ||
<div { ...useBlockProps() }> | ||
<p className={ className }>{ content }</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this used to work somehow before? 🤔
The API seems to return an object from the start?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ntsekouras, I just saw that we are working on the same issue, although it seems that you have advanced more than me 😃 😅 #35183
Did this used to work somehow before? 🤔
Wondering the same ― for me, it wasn't working. Which totally makes sense, as the object the useEntityProp
hook returns comes from the REST API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey David 👋 - sorry for this... I was reviewing the post avatar PR and noticed that it was broken.
I had seen that there was activity to the issue and my PR just fixes the breakage without the rest enhancements in the issue - that's why I just mentioned it as related
..
I guess we can land this PR and you handle all the other stuff (including the renaming 😄 ). What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, no problem! I'll wait for this PR to be merged. 👍
Size Change: +225 B (0%) Total Size: 1.06 MB
ℹ️ View Unchanged
|
Co-authored-by: George Mamadashvili <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The template is a really nice enhancement! :)
We definitely need to work on the comment selection interface though 🙈 I suppose we can do that separately :)
Related: #30574
I was reviewing another PR and saw that
Post Comment Content
block was broken in editor.This PR fixes that and also has some small enhancements to the
Post Comment
block by adding a defaulttemplate
and removing the extra wrapperdiv
.