Describe the bug
URL's in Button Blocks should have the option to open in a new tab, just like URL's added to links in Paragraph Blocks.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All URL fields in Gutenberg should have the option to be opened in a new tab.
Desktop (please complete the following information):
I tried editing it in HTML mode to add the target="_blank", but once back to block mode it detects it as invalid, and converts it to a HTML block instead.
Adding that this has also been suggested in #8000
I'm finding I'm needing this more and more often as I use the block editor. At the very least, it would be good if the block would at least not be invalidated by adding the attributes via the code editor
+1 on wanting this feature. The HTML workaround gets the job done but it's not a good long-term solution since the block shows an error.
Edit: I see the #8000 has a PR where this is getting introduced. Thank you all!
Thanks @annestk! Closing in favor of #8000.
Most helpful comment
Adding that this has also been suggested in #8000