@rpg-engine/long-bow 0.2.11 → 0.2.12
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/long-bow.cjs.development.js +3 -0
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +3 -0
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/PropertySelect/PropertySelect.tsx +4 -0
|
@@ -20393,6 +20393,9 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
20393
20393
|
React.useEffect(function () {
|
|
20394
20394
|
onChange(availableProperties[currentIndex]);
|
|
20395
20395
|
}, [currentIndex]);
|
|
20396
|
+
React.useEffect(function () {
|
|
20397
|
+
setCurrentIndex(0);
|
|
20398
|
+
}, [availableProperties]);
|
|
20396
20399
|
|
|
20397
20400
|
var getCurrentSelectionName = function getCurrentSelectionName() {
|
|
20398
20401
|
var item = availableProperties[currentIndex];
|