Skip to content

Commit

Permalink
fix(wrapper): confirmdialog component (#2628)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohitstom authored Nov 6, 2023
1 parent 3839de9 commit c1ec124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ window.Spicetify = {
ReactComponent: {
...Spicetify.ReactComponent,
TextComponent: modules.find(m => m?.h1 && m?.render),
ConfirmDialog: functionModules.find(m => m.toString().includes("isOpen") && m.toString().includes("shouldCloseOnEsc")),
ConfirmDialog: functionModules.find(
m => m.toString().includes("isOpen") && m.toString().includes("shouldCloseOnEsc") && m.toString().includes("onClose")
),
Menu: functionModules.find(m => m.toString().includes("getInitialFocusElement") && m.toString().includes("children")),
MenuItem: functionModules.find(m => m.toString().includes("handleMouseEnter") && m.toString().includes("onClick")),
Slider: wrapProvider(functionModules.find(m => m.toString().includes("onStepBackward"))),
Expand Down

0 comments on commit c1ec124

Please sign in to comment.