### Godot version

4.1.dev (4d5f10fc3a)

### System information

MacOS 13.1 M1 Pro

### Issue description

When right clicking an element of an array/dictionary it will select it but it will never be unselected (not if you select another node nor by reselecting the node). This leads to a lot of element being marked as selected which makes it a little less readable. When doing a left click it won't select.

### Steps to reproduce

1. export an array 
2. add an element 
3. try left click it won't select
4. try right click it will select

### Minimal reproduction project

N/A
for (DocData::ConstantDoc val : enum_class->value.constants) {
										
										if (val.enumeration == enum_name && !val.name.ends_with("_MAX")) {
											const String enum_value = EditorPropertyNameProcessor::get_singleton()->process_name(val.name, EditorPropertyNameProcessor::STYLE_CAPITALIZED);
											
											doc_info.description += vformat(
													"\n[b]%s:[/b] %s",
													enum_value.trim_prefix(EditorPropertyNameProcessor::get_singleton()->process_name(enum_name, EditorPropertyNameProcessor::STYLE_CAPITALIZED) + " "),
													DTR(val.description).trim_prefix("\n"));
										}
									}
								}
							}
							doc_info.path = "class_property:" + F->value.name + ":" + F->value.properties[i].name;
							break;
						}
					}
					Vector<String> slices = propname.operator String().split("/");
					if (slices.size() == 2 && slices[0].begins_with("theme_override_")) {
						for (int i = 0; i < F->value.theme_properties.size(); i++) {
							if (F->value.theme_properties[i].name == slices[1]) {
								doc_info.description = DTR(F->value.theme_properties[i].description);
								doc_info.path = "class_theme_item:" + F->value.name + ":" + F->value.theme_properties[i].name;
								break;
							}
						}
					}
					if (!F->value.inherits.is_empty()) {
						F = dd->class_list.find(F->value.inherits);
					} else {