Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
ReactDataGrid on edit of a cell force closing the edit mode

we are using ReactDataGrid old version 5.0.1. since it's in production we cannot update that immediately.

when double click a grid it will go into edit mode. and on typing ( bracket it will open a dropdown as below. but this is working fine only in ubuntu.

In windows chrome, only the first cell when typed bracket( on edit, will open a dropdown. remaining cells when typed ( it is force closing edit mode. refer GIF image below.

"react-data-grid": "5.0.1",
"react-data-grid-addons": "5.0.4-2",
 handleKeydown = (e) => {
        e.stopPropagation()
        if (e.key == "(") {
            this.setState({ showDropdown: true })
        } else if (e.key == ")") {
            this.setState({
                MDDvalue: [],
                showDropdown: false,
            })
        }
    }
<div
                onKeyDown={this.stopPropagation}
                style={{ pointerEvents: `${isEditable ? "all" : "none"}` }}
                className="cell_bg-wrapper">
                <input
                    value={this.state.value}
                    ref="hybridinput"
                    onKeyDown={this.handleKeydown}
                    onChange={(e) => this.handleChangeComplete(e)}
                />
                {this.state.showDropdown ? (
                    <React.Fragment>
                        <div
                            onKeyDown={this.stopPropagation}
                            style={{
                                width: "100%",
                                position: "relative",
                                right: 0,
                                bottom: 5,
                                backgroundColor: "white",
                                color: "black",
                            }}>
                            <Select
                                value={this.state.MDDvalue}
                                onChange={this.addValue}
                                options={options}
                                defaultMenuIsOpen={true}
                                isMulti={true}
                                closeMenuOnSelect={!true}
                                onBlur={this.onBlur}
                                onKeyDown={this.onKeyDownofSelect}
                            />
                        </div>
                    </React.Fragment>
                ) : null}
            </div>

enter image description here

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda