keystonejs/keystone-classic

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

Open

#4,305 创建于 2017年5月17日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (14,656 star) (2,288 fork)batch import
bughelp wanted

描述

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

贡献者指南

NESTED-LISTS - Nested Types.Html with dependsOn sets visibility of preceding item to hidden? · keystonejs/keystone-classic#4305 | Good First Issue