Commit 51bc473e authored by Muhammadali's avatar Muhammadali

update-

parent 8169680b
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.8.5", "version": "2.8.6",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -13,18 +13,20 @@ const CallHistoryInputDropdown = ({ ...@@ -13,18 +13,20 @@ const CallHistoryInputDropdown = ({
const [modal, setModal] = useState(false); const [modal, setModal] = useState(false);
var elem = document.getElementById('data'); var elem = document.getElementById('data');
useEffect(() => { useEffect(() => {
elem.scrollTop = elem.scrollHeight; if (call_history.length) {
elem.scrollTop = elem.scrollHeight;
}
}, []); }, []);
const selectFuncInset = (e) => { const selectFuncInset = (e) => {
selectFunc(e); selectFunc(e);
setModal(false); setModal(false);
}; };
// useEffect(() => { useEffect(() => {
// if (elem.scrollTop && elem.scrollHeight && numberSelectHistory) { if (call_history.length) {
// elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34; elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34;
// } }
// }, [numberSelectHistory]); }, [numberSelectHistory]);
return ( return (
<Block> <Block>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment