keystonejs/keystone-classic

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

Open

#4.305 geöffnet am 17. Mai 2017

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (14.656 Stars) (2.288 Forks)batch import
bughelp wanted

Beschreibung

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