@qtoggle/qui 1.16.2 → 1.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -192,7 +192,9 @@ $.widget('qui.choicebuttons', $.qui.basewidget, {
192
192
 
193
193
  _setActive: function (button) {
194
194
  this._getButtons().removeClass(this.options.onClass)
195
- button.addClass(this.options.onClass)
195
+ if (button) {
196
+ button.addClass(this.options.onClass)
197
+ }
196
198
  },
197
199
 
198
200
  _installClickHandlers: function () {
@@ -226,6 +228,7 @@ $.widget('qui.choicebuttons', $.qui.basewidget, {
226
228
  },
227
229
 
228
230
  setValue: function (value) {
231
+ this._setActive(null)
229
232
  let widget = this
230
233
  this._getButtons().each(function () {
231
234
  if ($(this).data('value') === value) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qtoggle/qui",
3
3
  "description": "A JavaScript UI library with batteries included.",
4
- "version": "1.16.2",
4
+ "version": "1.16.3",
5
5
  "author": {
6
6
  "name": "Calin Crisan",
7
7
  "email": "ccrisan@gmail.com"
package/setup.py CHANGED
@@ -8,7 +8,7 @@ except ImportError:
8
8
 
9
9
  setup(
10
10
  name='qui-server',
11
- version='1.16.2',
11
+ version='1.16.3',
12
12
  description='QUI server-side',
13
13
  author='Calin Crisan',
14
14
  author_email='ccrisan@gmail.com',