Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

149
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda