KasperOlesen / DataTable-AltEditor

Updated version of the free-datatables-editor-alternative from Kingcode.com
MIT License
329 stars 195 forks source link

Select2 search #199

Open Frisi84 opened 2 years ago

Frisi84 commented 2 years ago

Hello, first of all thanks for sharing this great extension.

When the modal window show up, and I use a select2 module for a field, the search option inside it is disabled and not working. Not just an issue of my code but also in the examples.. what could I do to fix it?

eric-rsc commented 2 years ago

I'm having this issue as well.

Frisi84 commented 2 years ago

I’ve found a way to fix it but cant remember at the moment :( If you search it is something with modal and select2 focus

eric-rsc commented 2 years ago

For anyone that is still trying to figure this out, I've temporarily solved this issue with the following code: $('body').on('shown.bs.modal', '.altEditor-modal', () => { $('.altEditor-modal')[0].removeAttribute('tabindex'); });

eusi commented 2 years ago

For anyone that is still trying to figure this out, I've temporarily solved this issue with the following code: $('body').on('shown.bs.modal', '.altEditor-modal', () => { $('.altEditor-modal')[0].removeAttribute('tabindex'); });

Where to add this and do I need to change it somehow?

iAntivist commented 1 year ago

For anyone that is still trying to figure this out, I've temporarily solved this issue with the following code: $('body').on('shown.bs.modal', '.altEditor-modal', () => { $('.altEditor-modal')[0].removeAttribute('tabindex'); });

thanks dude, this works perfectly!!!