fix(pat-select2): Show predefined value for single-select widgets.#1600
Conversation
|
|
||
| it("renders the preset value of a single-select vocabulary widget", async function () { | ||
| document.body.innerHTML = ` | ||
| <input class="pat-select2" |
There was a problem hiding this comment.
Shouldn't that be a <select> if its not multiple values ?
I wonder why this is needed, because the language field actually works with predefined values: https://github.com/plone/plone.app.dexterity/blob/master/src/plone/app/dexterity/behaviors/metadata.py#L110
There was a problem hiding this comment.
A <select> field cannot use AJAX remote data.
And for the timezone selection fields I do not want to use pre-populated list of options - because it can be huge - but a text field where you can enter manually (if JS is off) or search/select via AJAX.
|
/run-coredev-robottests |
a83a2db to
f885891
Compare
|
/run-coredev-robottests |
|
Btw. I have added a test showing that the |
Single-select widgets did not show their predefined value. This is now fixed.
f885891 to
a4b35d6
Compare
Single-select widgets did not show their predefined value. This is now fixed.
fixed:
not fixed:
If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.
Closes #