Fix dropdown blinking ux i& add trim option

Changes: 
- Solve remote fetch dropdown blinking ux issue
- Add support for trim options 
- Update unit tests and demo page

@ryan-roemer @alexlande