apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

Select fields in arrays starts open in model by default

Open mcoppola opened this issue 12 years ago • 4 comments

Only when a select field is the first field in the array.

mcoppola avatar Nov 04 '14 20:11 mcoppola

I don't quite understand what the issue is Matt, can you rephrase?

On Tue, Nov 4, 2014 at 3:22 PM, Matthew Coppola [email protected] wrote:

Only when a select field is the first field in the array.

— Reply to this email directly or view it on GitHub https://github.com/punkave/apostrophe/issues/175.

*THOMAS BOUTELL, *DEV & OPS P'UNK AVENUE | (215) 755-1330 | punkave.com

boutell avatar Nov 04 '14 20:11 boutell

Yes, sorry. In a schema widget - when you have a select type field within an array type field, and it is the first field in the array - the select dropdown will start open in the edit modal.

The issue is in the selector on line 566 of public/js/content.js

mcoppola avatar Nov 04 '14 20:11 mcoppola

Hmm, apostrophe-schema-widgets and apostrophe-schemas don't have a content.js, can you double check where you believe this issue is hiding? Thanks.

On Tue, Nov 4, 2014 at 3:59 PM, Matthew Coppola [email protected] wrote:

Yes, sorry. In a schema widget - when you have a select type field within an array type field, and it is the first field in the array - the select dropdown will start open in the edit modal.

The issue is in the selector on line 566 of public/js/content.js

— Reply to this email directly or view it on GitHub https://github.com/punkave/apostrophe/issues/175#issuecomment-61713316.

*THOMAS BOUTELL, *DEV & OPS P'UNK AVENUE | (215) 755-1330 | punkave.com

boutell avatar Nov 05 '14 13:11 boutell

It was content.js of apostrophe core. I extended the selector to account for this case with 79ba637ce9aca8fbcd90c3ef06163270d35fb8fa.

mcoppola avatar Nov 05 '14 13:11 mcoppola