bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Menu btn throws error on focus when it hidden in responsiveness button #10207

Open chuckn0rris opened 3 weeks ago

chuckn0rris commented 3 weeks ago

Forum post

here is my code for the tool bar element

{
    type: 'button',
    text: 'Vehicle Transactions',
    cls: 'b-raised',
    menu: [
        {
            text: 'Vehicle Arrival',
            menu: [{
                text: 'ATL Vehicle Arrival'
            },
            {
                text: 'Other Vehicle Arrival'
            }]
        },
        {
            text: 'Vehicle Departure',
            menu: [{
                text: 'ATL Vehicle Departure'
            },
            {
                text: 'Other Vehicle Departure'
            }]

    },
],
onItem({ item }) {
    dotNetHelper.invokeMethodAsync('nonWarehouseVehicleTransaction',
        item.text);
}
},

and in the screenshot you can see the error in the console, the behaviour is that I can not interact with the Vehicle Transactions menu, no menu item would show up when the mouse is on the button. Screenshot 2024-10-14 172201.png

matsbryntse commented 2 weeks ago

Test pushed to 10207-menu