- fix dynamically added MIZSelect elements not getting disabled along with their
select element. Observers for the
disabled
attribute were not assigned to dynamically created elements.
- tweak CSS classes to better support dark mode
- disable anchor elements in disabled TomSelect elements (makes edit link not clickable)
- observe changes to the
disabled
attribute of "tomselected" elements and disable/enable the TomSelect instance of that element accordingly
- fix
popup_response.html
template not being included in the python package
- add plugins for dropdown_footer, add_button and changelist_button
- added popup response that updates the form when modifying related objects via the add and edit buttons
- add init event to enable overwriting TomSelect parameters
- rework scrolling when dropdown opens: only scroll when the bottom of the dropdown doesn't fit on the screen. The previous scrolling was 'too aggressive'.
- add
can_remove
widget argument which controls whether to include a remove button - scroll dropdown into view when opening it
- remove edit buttons from tab order
- move id column for tabular selects to the end of a row. This should improve readability when the id column contains 'longer' values.
- (flex-)wrap buttons in the dropdown footer instead of having them overflow
- fail silently when add/edit/changelist URLs cannot be reversed
- clicking on a selected item in a multi select now opens the dropdown instead of marking the item
- the mutation observer now checks children of added nodes
- add separate init function which also checks whether the element is already initialized
- added mutation observer to initialize inserted mizselect elements
- use no_backspace_delete plugin by default
- change add button CSS class to
mizselect-add-btn
to make it more specific
- add multiple selection variants of the widgets
- fix widget not rendering initially selected choices
- reworked demo
- fix edit button href not being set for initial items
- add edit links to selected items
- assign search term as AutocompleteView instance variable 'q'
- wrap create_object in an atomic block
- no longer call encodeURIComponent on values for query strings
- fix dropdown footer being visible when it has no content (#2)
- set sensible defaults for widget attributes (#3, #4)
- AutocompleteView: unquote search var string
- call values() on result queryset with fields specified on the widget only
- this reduces query overhead
- allows including values from many-to-one relations
- fix handling of undefined column data
- refactor filterBy filtering in autocomplete view
- add
search_lookup
argument to MIZSelect widget - AutocompleteView now uses the
search_lookup
to filter the results
- initial release