### 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
}
			draw_rect(header_rect, c);
			
			{
				int separation = Math::round(2 * EDSCALE);
				int margin_start = section_indent + separation;
				int margin_end = separation;
				
				Ref<Texture2D> arrow = _get_arrow();
				if (arrow.is_valid()) {
					Point2 arrow_position;
					if (rtl) {
						arrow_position.x = get_size().width - (margin_start + arrow->get_width());
					} else {
						arrow_position.x = margin_start;
					}
					arrow_position.y = (header_height - arrow->get_height()) / 2;
					draw_texture(arrow, arrow_position);
					margin_start += arrow->get_width();
				}
				int available = get_size().width - (margin_start + margin_end);
				
				String num_revertable_str;
				int num_revertable_width = 0;
				bool folded = foldable && !object->editor_is_section_unfolded(section);
				Ref<Font> font = get_theme_font(SNAME("bold"), SNAME("EditorFonts"));
				int font_size = get_theme_font_size(SNAME("bold_size"), SNAME("EditorFonts"));
				Color font_color = get_theme_color(SNAME("font_color"), SNAME("Editor"));
				if (folded && revertable_properties.size()) {
					int label_width = font->get_string_size(label, HORIZONTAL_ALIGNMENT_LEFT, available, font_size, TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_CONSTRAIN_ELLIPSIS).x;