When I click the "open in new tab" toggle, nothing happens in the UI. The onChange is triggered. How do I set the toggle to true?
I am using the following: https://github.com/WordPress/gutenberg/tree/trunk/packages/block-editor/src/components/link-control#settings
Here is my current link control component
<LinkControl
searchInputPlaceholder="Add Link"
value={attributes.link}
onChange={ ( value ) => {
setAttributes({ link: value.url, opensInNewTab: value.opensInNewTab})
}}
settings={[
{
id: 'opensInNewTab',
title: 'Opens in new tab',
}
]}
suggestionsQuery={ { type: "post", subtype: 'page' } }
>