keystonejs/keystone-classic

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

Open

#4305 aperta il 17 mag 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (2288 fork)batch import
bughelp wanted

Metriche repository

Star
 (14.656 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor