Project

General

Profile

Actions

Bug #8191

closed

Improve cbSelect jQuery so it can't bind to select2 element

Added by krileon over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
02 October 2020
Due date:
% Done:

100%

Estimated time:

Description

Currently if you call cbselect jQuery to bind to an element and then you call it again from another unrelated plugin because of the CSS class copy behavior it binds yet again cbselect except it does so to the select2 element. This can be avoid if the selector is prefixed with "select" (e.g. select.MyClass), but cbselect should just be smart enough to not do this (just make sure the element it's binding to isn't a select2 already).

Actions

Also available in: Atom PDF