Commit 27b19ad3 authored by Muhammadali's avatar Muhammadali

update-

parent 602d504c
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.8.0", "version": "2.8.1",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -11,10 +11,9 @@ const CallHistoryInputDropdown = ({ ...@@ -11,10 +11,9 @@ const CallHistoryInputDropdown = ({
setDefaultHistoryNumberHistory, setDefaultHistoryNumberHistory,
}) => { }) => {
const [modal, setModal] = useState(false); const [modal, setModal] = useState(false);
var elem = document.getElementById('data');
useEffect(() => { useEffect(() => {
if (call_history.length) { if (call_history.length) {
var elem = document.getElementById('data');
elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34; elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34;
} }
}, [call_history]); }, [call_history]);
...@@ -23,10 +22,9 @@ const CallHistoryInputDropdown = ({ ...@@ -23,10 +22,9 @@ const CallHistoryInputDropdown = ({
setModal(false); setModal(false);
}; };
// useEffect(() => { useEffect(() => {
// var elem = document.getElementById('data'); elem?.scrollTop = elem?.scrollHeight - numberSelectHistory * 34;
// elem.scrollTop = elem.scrollHeight - numberSelectHistory * 34; }, [numberSelectHistory]);
// }, [inputValue]);
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