fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

version of office-ui-fabric-react with ComboBox that will work with SPFX RC0

Open russgove opened this issue 9 years ago • 8 comments

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)?

russgove avatar Sep 01 '17 13:09 russgove

Did you get this resolved? I'm having the same issue.

spmcmanus avatar Oct 05 '17 16:10 spmcmanus

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 :)

lszomoru avatar Nov 07 '17 10:11 lszomoru

I ended up using react-select

russgove avatar Nov 07 '17 22:11 russgove

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"

russgove avatar Nov 08 '17 15:11 russgove

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.

russgove avatar Nov 09 '17 15:11 russgove

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!

stale[bot] avatar Apr 11 '18 08:04 stale[bot]

Hi @russgove, is this still an issue? If not could you please close?

manishgarg1 avatar May 01 '18 20:05 manishgarg1

closing issue

russgove avatar May 01 '18 23:05 russgove