@rolster/react-components 18.11.4 → 18.11.5
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.
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +2 -1
- package/dist/es/index.js.map +1 -1
- package/package.json +4 -4
package/dist/es/index.js
CHANGED
|
@@ -1611,7 +1611,8 @@ function useReactControl(props = {}) {
|
|
|
1611
1611
|
setCurrentState(initialValue);
|
|
1612
1612
|
}
|
|
1613
1613
|
function subscribe(subscriber) {
|
|
1614
|
-
|
|
1614
|
+
const subscription = subscribers.subscribe(subscriber);
|
|
1615
|
+
return () => subscription.unsubscribe();
|
|
1615
1616
|
}
|
|
1616
1617
|
return {
|
|
1617
1618
|
blur,
|