[PR #18971] [MERGED] Fixes #18955: Include the "clear" button only for non-required dropdown fields #15490

Closed
opened 2025-12-30 00:22:14 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18971
Author: @jeremystretch
Created: 3/20/2025
Status: Merged
Merged: 4/11/2025
Merged by: @jeremystretch

Base: mainHead: 18955-conditional-clear-button


📝 Commits (4)

  • 9c180c9 Include the 'clear' button only for non-required fields
  • 91f1b46 Apply the 'required' attribute for mandatory fields 63e37c5 Merge branch 'main' into 18955-conditional-clear-button 15d9cf2 Recompile static assets 📊 Changes 4 files changed (+13 additions, -11 deletions) View changed files 📝 netbox/project-static/dist/netbox.js (+4 -4) 📝 netbox/project-static/dist/netbox.js.map (+1 -1) 📝 netbox/project-static/src/select/config.ts (+7 -5) 📝 netbox/templates/django/forms/widgets/select.html (+1 -1) 📄 Description Fixes: #18955 Enable the clear_button Tom-Select plugin only for fields without required set 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/18971 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/20/2025 **Status:** ✅ Merged **Merged:** 4/11/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `18955-conditional-clear-button` --- ### 📝 Commits (4) - [`9c180c9`](https://github.com/netbox-community/netbox/commit/9c180c9f75e66d6e99db79697d4af486ee7d0545) Include the 'clear' button only for non-required fields - [`91f1b46`](https://github.com/netbox-community/netbox/commit/91f1b46dc3002608f9896c44d5318d3ad1e1dafe) Apply the 'required' attribute for mandatory <select> fields - [`63e37c5`](https://github.com/netbox-community/netbox/commit/63e37c5e54d8f0d93968c5b3d7cc303d331e214c) Merge branch 'main' into 18955-conditional-clear-button - [`15d9cf2`](https://github.com/netbox-community/netbox/commit/15d9cf2c30386a96a915bb595562d047811bf760) Recompile static assets ### 📊 Changes **4 files changed** (+13 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.js` (+4 -4) 📝 `netbox/project-static/dist/netbox.js.map` (+1 -1) 📝 `netbox/project-static/src/select/config.ts` (+7 -5) 📝 `netbox/templates/django/forms/widgets/select.html` (+1 -1) </details> ### 📄 Description ### Fixes: #18955 - Enable the `clear_button` Tom-Select plugin only for fields without `required` set --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:22:14 +01:00
adam closed this issue 2025-12-30 00:22:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15490