Skip to content

TreeView: focus treeview element in selectAllEnabled and items empty (T1294524)#30887

Merged
juleari merged 6 commits intoDevExpress:25_2from
juleari:25_2_T1294524_focused
Aug 27, 2025
Merged

TreeView: focus treeview element in selectAllEnabled and items empty (T1294524)#30887
juleari merged 6 commits intoDevExpress:25_2from
juleari:25_2_T1294524_focused

Conversation

@juleari
Copy link
Contributor

@juleari juleari commented Aug 26, 2025

… a ScrollView

@juleari juleari self-assigned this Aug 26, 2025
@juleari juleari requested a review from a team as a code owner August 26, 2025 13:21
@juleari juleari added the 25_2 label Aug 26, 2025
@anna-shakhova
Copy link
Contributor

shorten PR name that will transform in commit message after merge
it should start from a verb and reflect changes that we made, at the end add ticket number in parantheses
like: TreeView: focus treeview element in selectAllEnabled and items empty (T1294524)

const isSelectAllEnabled = selectAllEnabled ?? this._selectAllEnabled();

if (isSelectAllEnabled) {
const { items } = this.option();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const { items } = this.option();
const { items = [] } = this.option();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this you can remove optional changing from the condition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did, but why is it a preferrable way?
if items were used more than once (or if actually needed items) -- then sure
but in this case it's just ? against = [] and optional chaining is shorter and still readable and understandable

@juleari juleari changed the title DataGrid – Header filter popup of a date-type column does not contain… TreeView: focus treeview element in selectAllEnabled and items empty (T1294524) Aug 27, 2025
@juleari juleari force-pushed the 25_2_T1294524_focused branch from 6df9c5d to e1df16e Compare August 27, 2025 08:45
@juleari juleari merged commit d72d6ba into DevExpress:25_2 Aug 27, 2025
311 checks passed
@juleari juleari deleted the 25_2_T1294524_focused branch August 27, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants