[REV] mail: Don't hide activity dropdown when clicking on feedback form

revert of https://github.com/odoo/odoo/pull/91209

Steps:
    - Go to CRM, kanban view
    - click on "Planned" button
    - click on "Mark as done" button
    - click on "Write Feedback" textarea

The activity dropdown disappears immediatly

opw-2884875

closes odoo/odoo#94470

X-original-commit: f59dab2ed666d5a71eb84d53c50bcdd15e264d96
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
This commit is contained in:
Achraf (abz)
2022-06-24 09:26:01 +02:00
parent 9fe2aea789
commit be1076e71a
3 changed files with 1 additions and 6 deletions
-4
View File
@@ -637,10 +637,6 @@ var KanbanActivity = BasicActivity.extend({
*/
_renderDropdown: function () {
var self = this;
this.$el.dropdown({
boundary: 'viewport',
flip: false,
});
this.$('.o_activity')
.toggleClass('dropdown-menu-right', config.device.isMobile)
.html(QWeb.render('mail.KanbanActivityLoading'));
@@ -1,6 +1,5 @@
.o_activity_view {
height: 100%;
overflow: auto;
> table {
background-color: white;
thead > tr > th:first-of-type {
@@ -4,7 +4,7 @@
<t t-name="mail.KanbanActivity">
<div class="o_kanban_inline_block dropdown o_mail_activity">
<!-- Dropdowns are created in JS to avoid some bugs, that's why the <a/> contains no args for the dropdown creation -->
<a class="dropdown-toggle o-no-caret o_activity_btn" data-toggle="dropdown" role="button">
<a class="dropdown-toggle o-no-caret o_activity_btn" data-boundary="viewport" data-flip="false" data-toggle="dropdown" role="button">
<!-- span classes are generated dynamically (see _render) -->
<span t-att-title="widget.selection[widget.activityState]" role="img" t-att-aria-label="widget.selection[widget.activity_state]"/>
</a>