frappe-ui
frappe-ui copied to clipboard
chore: define component prop types & expose Autocomplete's root element
Basic prop type info was missing for components (not typescript at the moment). Added it for:
- Autocomplete
- Date components (DatePicker, DateTimePicker, DateRangePicker)
- FileUploader
- Card
Also, exposing the root element of Autocomplete for controlling it from the parent component. I need access to template refs (for, you know what...). Accessing $el in this case references a TEXT_NODE, so exposing it explicitly.