Setting empty value for remote field to override previous value

Created on 20 September 2024, 4 months ago

Problem/Motivation

Set a blank value to override value from previous API request.

Steps to reproduce

Parent remote select, that feeds data to child remote select, and then remote number gets its value based of child remote select.

On the first try, everything works fine. But if you update parent select, that will trigger child select updated values. At that time the remote number keeps value from the previous API call. After child remote select is updated, then the remote number is updated correctly.

Proposed resolution

Add empty value to cover use case when API returns no data, and there is no error in the API response.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada igorbiki

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024