mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-29 23:04:43 +01:00
Added hopeful fix + logging.
This commit is contained in:
parent
d61d0a5795
commit
cd162309a8
1 changed files with 3 additions and 1 deletions
|
@ -92,6 +92,7 @@ class NumberInput extends React.Component {
|
|||
}
|
||||
|
||||
onChangeRange = (e) => {
|
||||
console.log(">> onChangeRange");
|
||||
const value = parseFloat(e.target.value, 10);
|
||||
const step = this.props.rangeStep;
|
||||
let dirtyValue = value;
|
||||
|
@ -131,8 +132,9 @@ class NumberInput extends React.Component {
|
|||
step="any"
|
||||
spellCheck="false"
|
||||
value={rangeValue}
|
||||
onChange={this.onChangeRange}
|
||||
onInput={this.onChangeRange}
|
||||
onPointerUp={() => {
|
||||
console.log(">> onPointerUp");
|
||||
const {dirtyValue} = this.state;
|
||||
const hasChanged = this.state.props !== dirtyValue
|
||||
if(this.isValid(dirtyValue) && hasChanged) {
|
||||
|
|
Loading…
Reference in a new issue