version of office-ui-fabric-react with ComboBox that will work with SPFX RC0
Hi , I have an spfx webpart using office-ui-fabric-react 2.34.2. I need to add a combobox, but thats not in 2.34.2. So i upgraded to 4.32.0 and got a bunch of errors. Error - typescript - node_modules\office-ui-fabric-react\node_modules@uifabric\utilities\lib\BaseComponent.d.ts(18,59): error TS1005: ',' expected. Error - typescript - node_modules\office-ui-fabric-react\node_modules@uifabric\utilities\lib\BaseComponent.d.ts(18,61): error TS1005: '>' expected. Error - typescript - node_modules\office-ui-fabric-react\node_modules@uifabric\utilities\lib\BaseComponent.d.ts(18,63): error TS1109: Expression expected. Error - typescript - node_modules\office-ui-fabric-react\node_modules@uifabric\utilities\lib\BaseComponent.d.ts(18,65): error TS1109: Expression expected. Error - typescript - node_modules\office-ui-fabric-react\node_modules@uifabric\utilities\lib\BaseComponent.d.ts(23,62): error TS1109: Expression expected
Is there a version that has the Combobox and is compatible with spfx (RC0)?
Did you get this resolved? I'm having the same issue.
Same here. I am running into this issue when trying to upgrade from 2.34.2 to 4.0.0. When I was seeing the errors I was using TypeScript 2.2.2. I just switched to TypeScript 2.5.3 and these errors went away but others appeared :)
I ended up using react-select
Hi Again, was just trying to update my solution that had the react-select and now that control seems to be having some sort of issue, causing my webpart not to render. Now I am trying to switch from react-select back to combobox. I got it working with the following configuration: "dependencies": { "@microsoft/sp-build-web": "^1.3.4", "@microsoft/sp-client-base": "~1.0.0", "@microsoft/sp-core-library": "^1.3.4", "@microsoft/sp-module-interfaces": "^1.3.4", "@microsoft/sp-webpart-base": "^1.3.4", "@microsoft/sp-webpart-workbench": "^1.3.4", "@types/react": "15.0.38", "@types/react-addons-shallow-compare": "0.14.17", "@types/react-addons-test-utils": "0.14.15", "@types/react-addons-update": "0.14.14", "@types/react-dom": "0.14.18", "@types/react-tabs": "^0.5.22", "@types/webpack-env": ">=1.12.1 <1.14.0", "ckeditor": "^4.6.2", "moment": "^2.18.1", "office-ui-fabric-react": "^4.21.2", "react": "15.4.2", "react-dom": "15.4.2", "react-select": "^1.0.0-rc.5", "react-tabs": "^0.8.3", "sp-pnp-js": "^2.0.6"
Turns out the combobox does not work as I had hoped. Wen a user types the fist character , say "M; it scrolls to the items in the list beginning with 'M'. But when he types the scrond character , Say 'O", it scrolls to the items in the list beginning with O. It really ought to scroll to the items beginning with 'MO'. I could not get that to work.
Turns out the TagPicker control works great for this. Just set the itemLimit to 1 and it can be used instead of the DropDown or the Combo Box.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!
Hi @russgove, is this still an issue? If not could you please close?
closing issue