Context menu purge: drop .js from the callback module specifier
The backend context menu appends .js itself when importing the callback module; with the extension already in the attribute the browser requested ssr-context-menu.js.js and the click died silently. Confirmed working in the backend after the fix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5b524bfce9
commit
be519f9bc1
1 file changed
+2
-1
@@ -66,6 +66,7 @@ final class SsrPurgeItemProvider extends AbstractProvider
|
|||||||
|
|
||||||
protected function getAdditionalAttributes(string $itemName): array
|
protected function getAdditionalAttributes(string $itemName): array
|
||||||
{
|
{
|
||||||
return ['data-callback-module' => '@evomedien/vitec/ssr-context-menu.js'];
|
// No ".js" here: the context menu JS appends it when importing.
|
||||||
|
return ['data-callback-module' => '@evomedien/vitec/ssr-context-menu'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user