Ngx-datatable: Datatable (select) event fired on datatable-footer-template

Created on 16 May 2017  路  2Comments  路  Source: swimlane/ngx-datatable

I'm submitting a ...

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
I upgrade my datatable to 9.1.x because I'll use the custom datatable footer. It works great, but when I put a select tag into my ngx-datatable-footer-template and I choose an option, the datatable (select) event is fire.

Expected behavior
Separate the (select) event and the select tag event.

Reproduction of the problem
Put a select or a select component into your datatable-footer-template.

  • Table version: 9.1.x

  • Angular version: 4.0.x

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Investigate

Most helpful comment

It _might_ be related:
FYI, select is a DOM event (https://developer.mozilla.org/fr/docs/Web/Events/select)
Meaning that whenever (select) is used (like here) you might catch a text selection... 馃槙
The naming in the ngx-datatable library needs to be fixed. We should never use the same name than native events.

All 2 comments

It _might_ be related:
FYI, select is a DOM event (https://developer.mozilla.org/fr/docs/Web/Events/select)
Meaning that whenever (select) is used (like here) you might catch a text selection... 馃槙
The naming in the ngx-datatable library needs to be fixed. We should never use the same name than native events.

@amcdnl Can you please look into this?

Was this page helpful?
0 / 5 - 0 ratings