From 3ffccce1fe3e48234c45919411424d2c7fa0bb73 Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sun, 24 Feb 2019 16:20:44 +0800 Subject: [PATCH] fix #817 --- .../examples/cell-edit/custom-editor-table.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-bootstrap-table2-example/examples/cell-edit/custom-editor-table.js b/packages/react-bootstrap-table2-example/examples/cell-edit/custom-editor-table.js index a75a98a..8b548a5 100644 --- a/packages/react-bootstrap-table2-example/examples/cell-edit/custom-editor-table.js +++ b/packages/react-bootstrap-table2-example/examples/cell-edit/custom-editor-table.js @@ -18,6 +18,11 @@ class QualityRanger extends React.Component { static defaultProps = { value: 0 } + + componentDidMount() { + this.range.focus(); + } + getValue() { return parseInt(this.range.value, 10); }