Skip to Content
Menu
This question has been flagged
2 Replies
2079 Views

I have a custom dashboard and it working well in Mozilla firefox but it doesnt work in Google Chrome.

There is no error in code and it works well.

I found that there is some problem in following code of a drop down in XML

<div class="card-tools">
    <select>
            <option id="this_year">This Year</option>
            <option id="this_month">This Month</option>
            <div role="separator" class="dropdown-divider" />
            <option id="last_month">Last Month</option>
            <option id="last_year">Last Year</option>
     </select>
 </div>


These option ids are given in the click events in JS. The code is below

 events: {
            'click #this_month': 'onclick_this_month',
            'click #this_year': 'onclick_this_year',
            'click #last_month': 'onclick_last_month',
            'click #last_year': 'onclick_last_year',

            }

I think error is near here.But i couldnt find it. Please help to solve this.
Avatar
Discard

is there any error in browser console?