fix(desktop): patch @dnd-kit/solid to preserve core scroll plugins (#38119)
Co-authored-by: Brendan Allan <git@brendonovich.dev> Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
--- a/index.js
|
||||
+++ b/index.js
|
||||
@@ -2195,6 +2195,17 @@
|
||||
sensors,
|
||||
modifiers
|
||||
}));
|
||||
+ }
|
||||
+ get plugins() {
|
||||
+ return super.plugins;
|
||||
+ }
|
||||
+ set plugins(plugins) {
|
||||
+ super.plugins = [
|
||||
+ ScrollListener,
|
||||
+ Scroller,
|
||||
+ StyleInjector,
|
||||
+ ...plugins
|
||||
+ ];
|
||||
}
|
||||
};
|
||||
var _element_dec, _handle_dec, _c, _init5, _handle, _element;
|
||||
--- a/index.cjs
|
||||
+++ b/index.cjs
|
||||
@@ -2196,6 +2196,17 @@
|
||||
sensors,
|
||||
modifiers
|
||||
}));
|
||||
+ }
|
||||
+ get plugins() {
|
||||
+ return super.plugins;
|
||||
+ }
|
||||
+ set plugins(plugins) {
|
||||
+ super.plugins = [
|
||||
+ ScrollListener,
|
||||
+ Scroller,
|
||||
+ StyleInjector,
|
||||
+ ...plugins
|
||||
+ ];
|
||||
}
|
||||
};
|
||||
var _element_dec, _handle_dec, _c, _init5, _handle, _element;
|
||||
Reference in New Issue
Block a user