Project

General

Profile

Actions

Bug #8357

closed

cbselect rebind event not working correctly in repeats

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

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
28 January 2021
Due date:
% Done:

100%

Estimated time:

Description

This is causing the destroy behavior on the select2 to fail, but only inside repeat usages and only on rebind behavior. Specifically to see issue use the below steps.

1. Edit/Create Userlist
2. Add 2 Columns to Userlist
3. Move Second Column to be above the First Column

Actions #1

Updated by krileon almost 4 years ago

This is caused by the internal cache in select2 calling destroy if a select2 instance already exists in the cache. So basically destroy is being called twice on the select2 instance because select2 doesn't correctly clean up after itself.

Either fix this in select2 itself or add a workaround in cbselect.

Actions #2

Updated by krileon almost 4 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed in MR !1625

Reverted select2 pointless change of native data API to internal cache. Native data API is significantly more reliable and not prone to memory leaks due to uncleared data.

Actions #3

Updated by beat over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF