Author Topic: Roundcube 1.6.6 - DropDown not working - select.popover is not a function  (Read 700 times)

Offline franc

  • Jr. Member
  • **
  • Posts: 21
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: [Select]
TypeError: select.popover is not a functionThat is in this code part:
Code: [Select]
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>'
                })
...
that code is in line 3746 of js:
Code: [Select]
roundcubemail/skins/elastic/ui.js
When I stop in FF with any exception, I see other errors too:
Code: [Select]
TypeError: $(...).attr(...).popover is not a function
MutationObserver.observe: Argument 1 is not an object.
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Roundcube 1.6.6 - DropDown not working - select.popover is not a function
« Reply #1 on: February 23, 2024, 01:05:13 PM »
Did you install the javascript dependencies?
Code: [Select]
2.2. Install Javascript dependencies by executing `bin/install-jsdeps.sh` script.
It sounds like your missing the bootstrap dependency.

Offline franc

  • Jr. Member
  • **
  • Posts: 21
Re: Roundcube 1.6.6 - DropDown not working - select.popover is not a function
« Reply #2 on: February 23, 2024, 01:37:36 PM »
Did you install the javascript dependencies?
Oh!!! I forgot that! Thank you, this did the trick, now its working :)
Thank you very much for the fast reply and solution :) :)
frank