daq.BooleanSwitch turns on/off with enter in input field

I am seeing odd behavior with a daq.BooleanSwitch. I have an input field and a daq.BooleanSwitch in a modal. When I press enter in the input field, the boolean switch toggles. I do not want that behavior. I want the booleanswitch to toggle when clicked on only. What is wrong?

#!/usr/bin/env python3
"""Minimal dash program."""

from dash import Dash
import dash_bootstrap_components as dbc
import dash_daq as daq

app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
app.layout = dbc.Container(dbc.Modal([dbc.ModalBody(dbc.Form([dbc.Row([dbc.Label('Name', width='auto'),
                                                                       dbc.Col(dbc.Input(id='cp-new-name', type='text'),
                                                                               className='me-3')]),
                                                              dbc.Row([dbc.Col(daq.BooleanSwitch(id='cp-new-array',
                                                                                                 on=False,
                                                                                                 label='Array',
                                                                                                 labelPosition='right'),
                                                                               width={'size': 2})]),
                                                              ]))], is_open=True))

if __name__ == '__main__':
    app.run_server(debug=True)

Hi @Brent I don’t know much about daq but I have the feeling, that these components are somehow outdated :see_no_evil: :grimacing:

I used the dash-mantine-components switch in the past which worked like a charm