Skip to content

When the overlay is triggered, the focus on input filter is lost. #243

Open
@ivanortegaalba

Description

@ivanortegaalba

When I use overlayFactory and the prop loading changes, the overlay is triggered.
The thing is, if it has been triggered because of a filter has changed, the focus on the filter is lost.

Something to fix it? This is my code:

const RemoteAll = ({ data, onTableChange, columns, defaultSorted, loading }) => (
  <BootstrapTable
    remote={{ filter: true, sort: true, overlay: true }}
    keyField='id'
    data={data}
    loading={loading}
    columns={columns}
    filter={filterFactory()}
    defaultSorted={defaultSorted}
    onTableChange={onTableChange}
    noDataIndication={<div className='sp-flex sp-justify-content-center'>No data</div>}
    overlay={overlayFactory({ spinner: true, background: 'rgba(192,192,192,0.3)' })} />
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions