mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-07 16:49:55 +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
|
const div = this.parentRef.current
|
||||||
if (!div) {return}
|
if (!div) {return}
|
||||||
const result = !(div.offsetTop - window.scrollY >= window.innerHeight / 2)
|
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) {
|
if (this.state.isInFirstPartOfScreen !== result) {
|
||||||
this.setState({isInFirstPartOfScreen: result})
|
this.setState({isInFirstPartOfScreen: result})
|
||||||
}
|
}
|
||||||
@ -202,7 +202,7 @@ export default class Input extends React.Component<Props, States> {
|
|||||||
})
|
})
|
||||||
|
|
||||||
private onAutoCompleteClick = (value: string) => () => {
|
private onAutoCompleteClick = (value: string) => () => {
|
||||||
console.log('test')
|
// console.log('test')
|
||||||
const item = this.getElement()
|
const item = this.getElement()
|
||||||
if (!item) {return}
|
if (!item) {return}
|
||||||
const valueSetter = Object.getOwnPropertyDescriptor(item, 'value')?.set
|
const valueSetter = Object.getOwnPropertyDescriptor(item, 'value')?.set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user