keystonejs/keystone-classic

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

Ouverte

#4 305 ouverte le 17 mai 2017

 (2 commentaires) (0 réaction) (0 personne assignée)JavaScript (2 288 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (14 656 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur