Commit 6975edd5 authored by Muhammadali's avatar Muhammadali

update-

parent 564c3a8e
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.8.3", "version": "2.8.4",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -13,18 +13,18 @@ const CallHistoryInputDropdown = ({ ...@@ -13,18 +13,18 @@ const CallHistoryInputDropdown = ({
const [modal, setModal] = useState(false); const [modal, setModal] = useState(false);
var elem = document.getElementById('data'); var elem = document.getElementById('data');
useEffect(() => { useEffect(() => {
if (call_history.length && elem.scrollHeight) { elem.scrollTop = elem.scrollHeight;
elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34; }, []);
}
}, [call_history]);
const selectFuncInset = (e) => { const selectFuncInset = (e) => {
selectFunc(e); selectFunc(e);
setModal(false); setModal(false);
}; };
// useEffect(() => { useEffect(() => {
// elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34; if (elem.scrollTop && elem.scrollHeight && numberSelectHistory) {
// }, [numberSelectHistory]); elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34;
}
}, [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