Skip to content

Instantly share code, notes, and snippets.

@monishdeb
Last active April 17, 2018 14:27
Show Gist options
  • Save monishdeb/e204f061f60ed638e83d12df5d453aa0 to your computer and use it in GitHub Desktop.
Save monishdeb/e204f061f60ed638e83d12df5d453aa0 to your computer and use it in GitHub Desktop.

select2 4.0.4 compatibility issues with CiviCRM

Broken entityRef field

There are multiple issues with entityRef field which are listed below:

  1. Placeholder doesn't show
  2. Unable to populate data via REST api link
  3. Create contact dialog box doesn't render below search field
  4. Escape text doesn't showup

Action-menu select2 doesn't work on selecting record(s) in search list

It throws a error Uncaught TypeError: Cannot read property 'apply' of undefined after Search and also action-menu field doesn't behave on selecting record.

The native crm CSS styling doesn't apply on select2/4.0+ widget

Other fixed compability issues are listed in https://gist.github.com/monishdeb/5ca2417d11a31f0b65727a0da1dfe105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment