Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes #1250] Support custom groups with unique or without ids #1252

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lipemat
Copy link
Contributor

@lipemat lipemat commented Apr 10, 2019

Description

Fixes #1250

This code accounts for 2 common scenarios when using render_row_cb to customize the markup used in groups. Currently, unless the rows include and follow the plugins's pattern exactly for ids, JS issues occur.

Scenarios this accounts for.

  1. Rows which do not have ids.
  2. Rows using their own style of ids which does not include the "-" at the end.

Bonus

  1. Also uses the same classes for new rows which accounts for custom classes.

lipemat added a commit to lipemat/CMB2 that referenced this pull request Apr 10, 2019
* fix/1250:
  [Updates CMB2#1252] Use existing classes when adding a new row to group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customized Groups Add Button Break With Version 2.6.0
1 participant