nvis-fe-cms-libs 1.1.16 → 1.1.17

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.
@@ -4447,18 +4447,13 @@ const FaqItem = ({ faq, index: index2, isActive, onToggle, isDarkMode, t }) => {
4447
4447
  );
4448
4448
  };
4449
4449
  const FaqSection = ({ data, t, isDarkMode }) => {
4450
- const [activeIndex, setActiveIndex] = useState(0);
4450
+ const [activeIndex, setActiveIndex] = useState(-1);
4451
4451
  const faqs = useMemo(() => {
4452
4452
  if ((data == null ? void 0 : data.sectionDataBindingItems) && Array.isArray(data.sectionDataBindingItems)) {
4453
4453
  return data.sectionDataBindingItems.map((item) => item.data).filter(Boolean);
4454
4454
  }
4455
4455
  return [];
4456
4456
  }, [data]);
4457
- useEffect(() => {
4458
- if (faqs.length > 0) {
4459
- setActiveIndex(0);
4460
- }
4461
- }, [faqs]);
4462
4457
  const toggleFaq = (index2) => {
4463
4458
  setActiveIndex(activeIndex === index2 ? -1 : index2);
4464
4459
  };