I am new to building cross-platform apps with electron: I have the problem where data-toggles (collapse, dropdown etc.) work properly in my browser but not after packaging to a MacOS app.
I finally focused on the data-toggle collapse example taken from w3cschools w3c-schools (data-toggle) to show/hide a paragraph.
I only replaced the js/css links to the downloaded versions to avoid possible connection errors.
Moreover, I tried a jQuery approach instead of relying on bootstrap data-toggle using the following code snippet: