Skip to content

Commit 54a60f0

Browse files
committed
Fix: Flash export buttons would not work in IE
- Note that this requires the use of an `<a>` tag rather than `<button>` to work in IE. Only in IE is the button tag changed. `<button>` is the correct one for accessibility - GH #153
1 parent a7bf639 commit 54a60f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/dataTables.buttons.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,10 @@ Buttons.defaults = {
11481148
className: 'dt-button-collection'
11491149
},
11501150
button: {
1151-
tag: 'button',
1151+
// Flash buttons will not work with `<button>` in IE - it has to be `<a>`
1152+
tag: 'ActiveXObject' in window ?
1153+
'a' :
1154+
'button',
11521155
className: 'dt-button',
11531156
active: 'active',
11541157
disabled: 'disabled'

0 commit comments

Comments
 (0)