Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the addon_icon_class context on the widget key #121

Closed
wants to merge 1 commit into from

Conversation

androettop
Copy link

Purpose

This PR addresses an issue where the picker icons are not showing in the latest version (5.0.5) of django-bootstrap-datepicker-plus when using a custom MultiWidget input with DatePickerInput and TimePickerInput. This issue was originally raised in this GitHub issue.

Approach

This change fixes the missing picker icons by adjusting the context returned by BasePickerInput. Specifically, it modifies the context dictionary to correctly pass the addon_icon_class to the widget template.

Issues solved in this PR

  • Missing picker icons in custom MultiWidget input.

What has Changed

  • Adjusted _base.py to ensure the addon_icon_class is passed correctly in the context.
  • Updated the input.html template to use widget.addon_icon_class instead of addon_icon_class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant