Skip to content

Commit 233f9aa

Browse files
authored
Fix bad width w/no options in multi-select DAG parameter (#51516)
Address inproper input element width when no options are present in a multi-select field for a DAG parameter in the DAG trigger page. If the parameter: * is in a section: the element would become too narrow making the dropdown options unreadable. * is NOT in a section: the element would overflow it's parent if re-sized smaller Address by setting width to fill the parent element as other DAG trigger paramter input fields behave. closes: #50322
1 parent c16ad98 commit 233f9aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

airflow/www/static/js/trigger.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ function initForm() {
170170
$(elementId).select2({
171171
placeholder: "Select Values",
172172
allowClear: true,
173+
width: "100%",
173174
});
174175
elements[i].addEventListener("blur", updateJSONconf);
175176
} else if (elements[i].type === "checkbox") {

0 commit comments

Comments
 (0)