Issue #2919Opened July 26, 2020by BerkeAras1 reactions

BUG: Custom Blocks are wrapped into a div

Question

Version: 0.16.18

Are you able to reproduce the bug from the demo?

[X] Yes: https://codesandbox.io/s/empty-night-8q733?file=/index.js [ ] No

What is the expected behavior? The Element "Link Button" should not be in a div. There should not be a div, just a 'a' tag

What is the current behavior?

Custom blocks are wrapped into a div.

Are you able to attach screenshots, screencasts or a live demo?

[X] Yes https://codesandbox.io/s/empty-night-8q733?file=/index.js [ ] No

Answers (2)

mcottretJuly 27, 20201 reactions

Hi @BerkeAras !

As shown on the Getting Started page, you can specify a tagName property when defining custom Blocks & Components to override the default div tag.

Cheers !

artfJuly 29, 20200 reactions

You're passing a description for a component (<div> as default) and then adding inner content (<a> tag) to that component

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.