Ecommerce Shopify WordPress Discussion

WordPress RadioControl issue [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 3 days ago. Improve this question I have created a custom block with the following javascript code: window.wp.blocks.registerBlockType("revolutionisesport/roster-link", { ... REMOVED CODE ... edit: function(props) { var options = [{ label: 'abc', value: '123']; return el( "div", window.wp.blockEditor.useBlockProps(), el( window.wp.components.RadioControl, { label: "Select team to display roster link for:", selected: props.attributes.team, options: options, }, ) ); } } But I when I click on the block I get the javascript error: Incorrect use of <label for=FORM_ELEMENT> If I commend out this line: label: "Select team to display roster link for:", The error goes away. I'm new to coding blocks. What am I missing?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.