keystonejs/keystone-classic

NESTED-LISTS - Nested Types.Html with dependsOn sets visibility of preceding item to hidden?

Open

#4305 opened on May 17, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (14,656 stars) (2,288 forks)batch import
bughelp wanted

Description

Hi,

Got a weird bug going on that I could do with some help on.

I need to be able to select between 3 fields in each nested list item. Im doing this by using a dependsOn, nested list is ProducedBy.

content: { brief: { type: Types.Html, wysiwyg: true, height: 150 }, extended: { type: Types.Html, wysiwyg: true, height: 400 }, quote: {type: Types.Html, wysiwyg: true, height: 150}, }, producedBy: { type: Types.List, fields: { label: {type: String}, type: {type: Types.Select, options: 'text, link, html', default: 'text' }, text: {type: String, dependsOn: { type: 'text' }}, link: {type: Types.Url, dependsOn: { type: 'link' }}, html: {type: Types.Html, wysiwyg: true, height: 30, dependsOn: { type: 'html' }} }},

The issue is when I use depends on within producedBy the preceding wysywig editor for content.quote has an inline hidden style applied to it.

Anyone have any idea why this would happen?

Cheers,

Tom

Contributor guide