Hello,
when i put key "matcher" in my element select2 library returns error in browser console. I created patch for this problem.

Comments

Adrian Liegmann created an issue. See original summary.

chr.fritsch’s picture

Hm, I think a better approach is to define the matcher function in JS.
You can take a look in https://github.com/thunder/select2/blob/8.x-1.x/modules/select2_publish/..., we do something similar with the createTag property as well.

adrianliegmann’s picture

Thanks for information. Can you add this to module documentation with examples?

chr.fritsch’s picture

adrianliegmann’s picture

Yes, thanks for all of your help!

adrianliegmann’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.