Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using limited cardinality for a Paragraphs reference field (Limited to 1 item, etc) the Paragraphs Browser widget button doesn't respond accordingly.
E.g., if you have limited to 1 item, and added 1 item, the Paragraphs Browser button is still visible, but when invoked and a paragraph is "added" via the browser nothing happens as the real button that the JS is attempting to trigger doesn't exist.
Ideally the button should only be visible if the parent button is also visible, and ideally in the same place as said button.
Comment | File | Size | Author |
---|---|---|---|
#2 | limit-cardinality-2825891-2.patch | 737 bytes | realityloop |
Comments
Comment #2
realityloopPatch to unset add button if cardinality is reached.
Comment #3
sgurlt CreditAttribution: sgurlt as a volunteer and at Bright Solutions GmbH commentedWorking pretty good, thanks for the patch !
Comment #6
MojiferousComment #7
Mojiferous