mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 06:27:25 +00:00
Added hopeful fix + logging.
This commit is contained in:
@@ -92,6 +92,7 @@ class NumberInput extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onChangeRange = (e) => {
|
onChangeRange = (e) => {
|
||||||
|
console.log(">> onChangeRange");
|
||||||
const value = parseFloat(e.target.value, 10);
|
const value = parseFloat(e.target.value, 10);
|
||||||
const step = this.props.rangeStep;
|
const step = this.props.rangeStep;
|
||||||
let dirtyValue = value;
|
let dirtyValue = value;
|
||||||
@@ -131,8 +132,9 @@ class NumberInput extends React.Component {
|
|||||||
step="any"
|
step="any"
|
||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
value={rangeValue}
|
value={rangeValue}
|
||||||
onChange={this.onChangeRange}
|
onInput={this.onChangeRange}
|
||||||
onPointerUp={() => {
|
onPointerUp={() => {
|
||||||
|
console.log(">> onPointerUp");
|
||||||
const {dirtyValue} = this.state;
|
const {dirtyValue} = this.state;
|
||||||
const hasChanged = this.state.props !== dirtyValue
|
const hasChanged = this.state.props !== dirtyValue
|
||||||
if(this.isValid(dirtyValue) && hasChanged) {
|
if(this.isValid(dirtyValue) && hasChanged) {
|
||||||
|
|||||||
Reference in New Issue
Block a user