fixedHeader conflicts with "input" when it is in the th tag

fixedHeader conflicts with "input" when it is in the th tag

VyacheslavVyacheslav Posts: 70Questions: 27Answers: 0

Actually there are two issues:

  1. See at http://plnkr.co/edit/5dn5vG?p=preview and try to type into the input element.
    ... but If we comment fixedHeader: true then all will be fine
  2. See the same plunker
    If we define the use of fixedHeader in defaults:
$.extend( true, $.fn.dataTable.defaults, {
      fixedHeader: true
    });

we will not be able to disable it in main module:

    var table = $('#example').DataTable({
      fixedHeader: false
    });

The same is true and for Select plug-in.

Bugs?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,573Questions: 1Answers: 10,483 Site admin
    Answer ✓

    I don't believe the first one is a bug. The click event is simply propagation up the DOM tree as events do. If you want it to no you need to use stopPropgation() to stop it form doing so: http://plnkr.co/edit/OkAzNwMVrXQebm7m3J1t?p=preview .

    The second one is a bug yes. Thanks for pointing that out.

    Allan

  • VyacheslavVyacheslav Posts: 70Questions: 27Answers: 0

    Got it! Thanks a lot!

  • allanallan Posts: 63,573Questions: 1Answers: 10,483 Site admin

    Finally fixed and will be in the Select 1.1.1 and FixedHeader 3.1.1 releases which will drop tomorrow.

    Allan

This discussion has been closed.