Removed intensive logging

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-05-18 10:53:39 +02:00
parent 6c69dac257
commit e5d8592186

View File

@ -183,7 +183,7 @@ export default class Input extends React.Component<Props, States> {
const div = this.parentRef.current
if (!div) {return}
const result = !(div.offsetTop - window.scrollY >= window.innerHeight / 2)
console.log(result, div, this.state.isInFirstPartOfScreen)
// console.log(result, div, this.state.isInFirstPartOfScreen)
if (this.state.isInFirstPartOfScreen !== result) {
this.setState({isInFirstPartOfScreen: result})
}
@ -202,7 +202,7 @@ export default class Input extends React.Component<Props, States> {
})
private onAutoCompleteClick = (value: string) => () => {
console.log('test')
// console.log('test')
const item = this.getElement()
if (!item) {return}
const valueSetter = Object.getOwnPropertyDescriptor(item, 'value')?.set