Fixes #18916: Fix styling of dynamic dropdowns with invalid selection #1390

Closed
opened 2026-04-06 00:32:08 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jeremystretch on 8/25/2025

Fixes: #18916

This tweaks the CSS so that the .ts-wrapper containers corresponding to each invalid <select> field with .is-invalid applied get the same styling.

Note: I wasn't able to fix the display of the invalid-feedback element beneath the field due to limitations in how Bootstrap implements this. (The <div> needs to immediately follow the offending <select>, which is not possible with the current widget layout.)

*Originally created by @jeremystretch on 8/25/2025* ### Fixes: #18916 This tweaks the CSS so that the `.ts-wrapper` containers corresponding to each invalid `<select>` field with `.is-invalid` applied get the same styling. Note: I wasn't able to fix the display of the `invalid-feedback` element beneath the field due to limitations in how Bootstrap implements this. (The `<div>` needs to immediately follow the offending `<select>`, which is not possible with the current widget layout.)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1390