-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Social Link: Remove block on DELETE if empty url
#50903
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
Conversation
cf875bc to
d2fa814
Compare
|
Size Change: +116 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
| } | ||
| placeholder={ __( 'Enter address' ) } | ||
| disableSuggestions={ true } | ||
| onKeyDown={ ( event ) => { |
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 is mostly whitespace changes besides the onKeyDown and the useDispatch line.
|
|
||
| A callback invoked on the keydown event. | ||
|
|
||
| - Required: No |
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.
Can't we inherit all normal input props?
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.
I guess this could be a follow up. We can land this for now, no?
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.
Sure! :)
DELETE if empty urlDELETE if empty url
What?
Resolves: #49761
This PR removes a Social Link block if the
urlvalue is empty and we pressDELETE.Testing Instructions
DELETEand observe the block is not removed and works as expectedDELETEand observe the block is removed.