News and Announcements > General Discussion

Roundcube 1.6.6 - DropDown not working - select.popover is not a function

(1/1)

franc:
Hallo

I just reinstalled the actual master branch of Roundcube on my Ubuntu 22.04 server, because I could not update my old Roundcube anymore, too much errors.

First I checked out the repo and installed along the INSTALL howto, had to compile the less css to get working css, I can read my mails and send, that works.

But none of any DropDown Boxes are working, when I open e.g. the Options Button, with sort and list settings, there is no dropdown popping down, when I click in the field. In Firefox Debugger I see the error:

--- Code: ---TypeError: select.popover is not a function
--- End code ---
That is in this code part:

--- Code: --- select.popover('dispose')
                .popover({
                    // because of focus issues we can't always use body,
                    // if select is in a dialog, popover has to be a child of this dialog
                    container: dialog || document.body,
                    content: list[0],
                    placement: 'bottom',
                    trigger: 'manual',
                    boundary: 'viewport',
                    html: true,
                    offset: '0,2',
                    sanitize: false,
                    template: '<div class="popover select-menu" style="min-width: ' + min_width + 'px; max-width: ' + max_width + 'px">'
                        + '<div class="popover-header"></div>'
                        + '<div class="popover-body" style="max-height: ' + max_height + 'px"></div></div>'
                })
...
--- End code ---
that code is in line 3746 of js:

--- Code: ---roundcubemail/skins/elastic/ui.js
--- End code ---

When I stop in FF with any exception, I see other errors too:

--- Code: ---TypeError: $(...).attr(...).popover is not a function
MutationObserver.observe: Argument 1 is not an object.
--- End code ---
While loading. So not only the DropDown Boxes are broken, I guess.

I thought maybe the master branch is buggy here, so I switched to tag 1.6.6 but its the same.

Does anybody could give me a hint, what I am missing here?
I am sure, I must have forgotten something, maybe something about jquery?

Thank. frank

SKaero:
Did you install the javascript dependencies?

--- Code: ---2.2. Install Javascript dependencies by executing `bin/install-jsdeps.sh` script.

--- End code ---
It sounds like your missing the bootstrap dependency.

franc:

--- Quote from: SKaero on February 23, 2024, 01:05:13 PM ---Did you install the javascript dependencies?

--- End quote ---
Oh!!! I forgot that! Thank you, this did the trick, now its working :)
Thank you very much for the fast reply and solution :) :)
frank

Navigation

[0] Message Index

Go to full version