You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to implement it in React JS components. in the popup layer, enter the content and click the 'insert' button to hide the popup layer. I am in the document https://preline.co/plugins/html/dropdown.html#js -I don't understand how to use it in React in Methods,
if (dropdownRef.current) {
const dropdownMenu = dropdownRef.current.querySelector('.hs-dropdown-menu') as HTMLElement;;
if (dropdownMenu) {
new window.HSDropdown.close(dropdownMenu)
}
}
Summary
This is a usage issue, it's not a bug
Steps to Reproduce
I want to implement it in React JS components. in the popup layer, enter the content and click the 'insert' button to hide the popup layer. I am in the document https://preline.co/plugins/html/dropdown.html#js -I don't understand how to use it in React in Methods,
Here is my completed code
Demo Link
https://preline.co/plugins/html/dropdown.html#js-methods
Expected Behavior
I hope to receive code implemented in React. js
Actual Behavior
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: