As per jquery documentation
"As of jQuery 1.7, when called with an array of keys or a string of space-separated keys, .removeData() deletes the value of each key in that array or string."
, In colorpicker.js line 255 , .removeData('colorpicker','color') will not remove the value for the second key 'color'
Can you please confirm this.
Context
bootstrap-colorpicker version: v2.5.2
bootstrap version: v2.2.2
jQuery version: v2.2.4
Browser name and version: Chrome , v84.0.4147.135
Operative System name an version: Windows 10
Expected behavior
To remove the values of both the keys
use either of the below formats as suggested by Jquery
Description
As per jquery documentation "As of jQuery 1.7, when called with an array of keys or a string of space-separated keys, .removeData() deletes the value of each key in that array or string." , In colorpicker.js line 255 , .removeData('colorpicker','color') will not remove the value for the second key 'color' Can you please confirm this.
Context
Expected behavior
To remove the values of both the keys use either of the below formats as suggested by Jquery
Actual behavior
removes value only for first key = 'colorpicker'
Live Example
https://jsfiddle.net/ksomasundaram/boc5rwy2/