Prevent clickable <use xlink:href="#icon-abc"></use> tags.
This commit is contained in:
parent
d5421e38ee
commit
b27e813ddc
2 changed files with 8 additions and 6 deletions
|
@ -29,11 +29,8 @@ class Index extends App.Controller
|
||||||
|
|
||||||
delete: (e) =>
|
delete: (e) =>
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
id = $(e.target).data('device-id')
|
id = $(e.target).closest('a').data('device-id')
|
||||||
if !id
|
|
||||||
id = $(e.target).closest('a').data('device-id')
|
|
||||||
console.log('ID', id)
|
|
||||||
# get data
|
|
||||||
@ajax(
|
@ajax(
|
||||||
id: 'user_devices_delete'
|
id: 'user_devices_delete'
|
||||||
type: 'DELETE'
|
type: 'DELETE'
|
||||||
|
|
|
@ -27,6 +27,11 @@ body {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* prevent clickable <use xlink:href="#icon-abc"></use> */
|
||||||
|
use {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 14px 0;
|
margin: 14px 0;
|
||||||
color: hsl(60,1%,34%);
|
color: hsl(60,1%,34%);
|
||||||
|
|
Loading…
Reference in a new issue