mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-22 19:02:15 +00:00
Removed intensive logging
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
6c69dac257
commit
e5d8592186
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user