1

This is the image showing the page with and without locker service

When we enable the locker service, then the select box is not populating with the options i.e. no option is visible and its not there in dom as well

  • What javascript library are you using? – Brian Mansfield Mar 23 '17 at 15:23
  • jQuery Datatable, it has jQuery built in – Akshay Vijay Jain Mar 24 '17 at 4:35
1

This is the DataTable code which creates select box

Now The cause of issue
Locker service disrupts the Option class As seen, new Option is not able to produce the html with locker service enabled
So I manually created the HTML for the select box and did not add event handlers, since they were already created by datatable of delegated type

you can find those event handlers by searching "change.dt" in datatable code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.