mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Code styling
This commit is contained in:
@@ -177,16 +177,19 @@ export default function table() {
|
||||
|
||||
watchForCheckboxClicks: function () {
|
||||
if (this.controller) {
|
||||
this.controller.abort();
|
||||
this.controller.abort()
|
||||
}
|
||||
this.controller = new AbortController()
|
||||
const { signal } = this.controller
|
||||
|
||||
this.$root?.addEventListener('click', (event) =>
|
||||
(event.target &&
|
||||
event.target.matches('.fi-ta-record-checkbox')) &&
|
||||
this.handleCheckboxClick(event, event.target)
|
||||
, { signal })
|
||||
this.$root?.addEventListener(
|
||||
'click',
|
||||
(event) =>
|
||||
event.target &&
|
||||
event.target.matches('.fi-ta-record-checkbox') &&
|
||||
this.handleCheckboxClick(event, event.target),
|
||||
{ signal },
|
||||
)
|
||||
},
|
||||
|
||||
handleCheckboxClick: function (event, checkbox) {
|
||||
|
||||
Reference in New Issue
Block a user