### Godot version

4.1.dev4

### System information

Godot v4.1.dev4 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 Ti (NVIDIA; 31.0.15.3179) - Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 Threads)

### Issue description

When modifying any gradients in the property inspector, the color picker will close automatically when trying to adjust any values. It might also fail to open. Continued interaction will result in more inconsistent behavior.

This applies to editing any gradient property, for example Line2D.gradient or a GradientTexture1D or GradientTexture2D resource.

This issue does not occur in Godot 4.1.dev3.

### Steps to reproduce

Create a new scene with a Line2D node, set the gradient property to a new gradient, and try adjusting its colors.


### Minimal reproduction project

N/A
return interpolation_mode;
}
void Gradient::set_interpolation_color_space(Gradient::ColorSpace p_color_space) {
	interpolation_color_space = p_color_space;
	emit_signal(CoreStringNames::get_singleton()->changed);
}
Gradient::ColorSpace Gradient::get_interpolation_color_space() {
	return interpolation_color_space;
}
void Gradient::set_offsets(const Vector<float> &p_offsets) {
	points.resize(p_offsets.size());
	for (int i = 0; i < points.size(); i++) {
		points.write[i].offset = p_offsets[i];
	}
	is_sorted = false;
	emit_signal(CoreStringNames::get_singleton()->changed);
}
void Gradient::set_colors(const Vector<Color> &p_colors) {
	if (points.size() < p_colors.size()) {
		is_sorted = false;
	}
	points.resize(p_colors.size());
	for (int i = 0; i < points.size(); i++) {
		points.write[i].color = p_colors[i];
	}
	emit_signal(CoreStringNames::get_singleton()->changed);
}
Vector<Gradient::Point> &Gradient::get_points() {