gbs-add-block 1.0.9 → 1.0.10

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # GBS Building Blocks 2.0 (v1.0.9)
1
+ # GBS Building Blocks 2.0 (v1.0.10)
2
2
 
3
3
  Latest and upgraded version of GBS building blocks with headless UI and removed dependencies.
4
4
 
@@ -6,7 +6,7 @@ Latest and upgraded version of GBS building blocks with headless UI and removed
6
6
 
7
7
  For detailed documentation on usage and props, Please visit: [Building Block Documentation v2.0](https://blackmax-designs.gitbook.io/building-block-v2.0)
8
8
 
9
- ## What's New 🎉 (Ver 1.0.9)
9
+ ## What's New 🎉 (Ver 1.0.10)
10
10
 
11
11
  - Uploader Enhancement
12
12
  - Select Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbs-add-block",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "React Component Library",
5
5
  "type": "module",
6
6
  "files": [
@@ -194,7 +194,11 @@ const Select = forwardRef<SelectHandle, SelectProps>((props, ref) => {
194
194
  filteredItems.map(({ value, label }, index: number) => (
195
195
  <button
196
196
  key={value}
197
- ref={(el: any) => (itemRefs.current[index] = el)}
197
+ ref={(el: any) => {
198
+ if (itemRefs.current) {
199
+ itemRefs.current[index] = el;
200
+ }
201
+ }}
198
202
  className={`${selectStyle["filter-button"]} ${
199
203
  focusedIndex === index ? "bg-gray-100 dark:bg-gray-700" : ""
200
204
  }`}