statebus 7.0.7 → 7.0.8

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/client-library.js CHANGED
@@ -721,8 +721,8 @@
721
721
  // We create special functions for INPUT and TEXTAREA, because they
722
722
  // have to do extra work to maintain the cursor when we use statebus
723
723
  // instead of React's setState() for state updates.
724
- window.INPUT = function_for_tag(make_fixed_textbox('input'))
725
- window.TEXTAREA = function_for_tag(make_fixed_textbox('textarea'))
724
+ window.INPUT = function_for_tag(bus.libs.react17.input)
725
+ window.TEXTAREA = function_for_tag(bus.libs.react17.textarea)
726
726
 
727
727
 
728
728
  // Improve the functions ^^^ put this above
@@ -809,6 +809,12 @@
809
809
  })
810
810
  }
811
811
 
812
+ // We create special functions for INPUT and TEXTAREA, because they
813
+ // have to do extra work to maintain the cursor when we use statebus
814
+ // instead of React's setState() for state updates.
815
+ bus.libs.react17.input = make_fixed_textbox('input')
816
+ bus.libs.react17.textarea = make_fixed_textbox('textarea')
817
+
812
818
  function autodetect_args (func) {
813
819
  if (func.args) return
814
820
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statebus",
3
- "version": "7.0.7",
3
+ "version": "7.0.8",
4
4
  "description": "Synchronize state.",
5
5
  "main": "statebus.js",
6
6
  "scripts": {