Skip to content

JSONTreebinding changing on every property in model #4331

@igzThomasFrischholz

Description

@igzThomasFrischholz

What is the issue and how can we reproduce it?

  1. Bind a tree in a JSONModel to a sub property (e.g. /nestedItems)
  2. Change a different property in the model (e.g. /somethingCompletelyDifferent)

Error:

Observe the tree binding also firing the change event.

Expected behavior:

Tree binding only firing change when any child or child property of /nestedItems changed

Disclaimer:

Maybe i am understanding something wrong but this behavior does not look like its intended or in any case useful
I have not tested if this is JSONModel specific or if other model implementations are affected as well

JS Bin snippet reproducing the bug: https://jsbin.com/jakewodene/4/edit?js,output

When running the snippet you should see an alert confirming that the tree binding has changed

Which OpenUI5 version is your project targeting?

1.139.0

Is the issue device- or browser-specific?

No.
Tested on Chrome, Edge and Firefox

Confirmation

  • I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • I am not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions