Skip to content

[Bug]: onChange setValue event updating temporary state with incorrect value #1744

Open
@James4L

Description

@James4L

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

since the 2.7 update - onchange event "set temporary state value" doesn't seem to be working correctly and records the previous value instead of the current value.

This is happening in existing and new modules.

Expected Behavior

onChange setValue should update the correct value into the temporary state

Steps to reproduce

Create temporary state called state1. Create input text box called input1. Create onchange handler on input1 to setValue on state1 to {input1.value} observe the value of state1

Image

Here I set value of input 1 to "aa" yet state1 remained empty. Then I change value of input1 to "aabb" and state1 gets a value of "aa". If I change state1 to "aabbcc" state1 changes to "aabb" .

Image

Environment

Lowcoder Cloud

Additional Information

No response

Metadata

Metadata

Labels

BugSomething isn't workingJavascript FrontendPull requests that update Javascript code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions