collective / collective/plone.formwidget.masterselect

plone.patternslib alters select widget via javascript

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
10
PR merge metrics
No merged PRs in 30d

Description

After activating p.patternslib (tested on 1.2.1 on Plone 5.2.3/py3), the the normal select widget structure is altered by javascript. The option 'siblings':True no longer works and the field label is always shown.

Normal
```



SlaveField2
This field's visibility is controlled by the value selected in masterField. It will become invisible when the values 2 or 4 are selected.

No value
...
```

New structure (note the additional span tags)
```


SlaveField2
This field's visibility is controlled by the value selected in masterField. It will become invisible when the values 2 or 4 are selected.

No value
....
```
Deactivation of p.patternslib does not remove the installed javascript. It needs to be disabled from the resource registry in the control panel.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with p.patternslib 1.2.1 on Plone 5.2.3/Python 3, comparing the normal and altered select structures shown here. Inspect the JavaScript resource configuration and resource registry behavior; done means the select widget structure and siblings option remain usable, and deactivation no longer leaves the JavaScript installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.