mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor on directives
This commit is contained in:
parent
0f0c9b95b2
commit
9b9444b6b0
6 changed files with 14 additions and 10 deletions
|
@ -11,6 +11,8 @@ const Ripple = BaseRipple.extend('ripple', {
|
|||
this.create(el);
|
||||
this.bindEvents(el);
|
||||
}
|
||||
|
||||
el.setAttribute('data-pd-ripple', true);
|
||||
},
|
||||
unmounted(el) {
|
||||
this.remove(el);
|
||||
|
@ -91,7 +93,7 @@ const Ripple = BaseRipple.extend('ripple', {
|
|||
event.currentTarget.setAttribute('data-p-ink-active', 'false');
|
||||
},
|
||||
getInk(el) {
|
||||
return el && el.children ? [...el.children].find((child) => DomHandler.getAttribute(child, 'data-pd-ripple')) : undefined;
|
||||
return el && el.children ? [...el.children].find((child) => DomHandler.getAttribute(child, 'data-pc-name') === 'ripple') : undefined;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue