Commit 564c3a8e authored by Muhammadali's avatar Muhammadali

update-

parent 89319406
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.8.2", "version": "2.8.3",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -13,7 +13,7 @@ const CallHistoryInputDropdown = ({ ...@@ -13,7 +13,7 @@ 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) { if (call_history.length && elem.scrollHeight) {
elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34; elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34;
} }
}, [call_history]); }, [call_history]);
......
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