fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Nav: selection state can't be controlled by the consumer

Open dzearing opened this issue 10 years ago • 3 comments

The Nav control has no way to control selection state from the consumer's perspective. All of the hash change logic in the Nav should either be removed or overrideable.

Take this codepen example: http://codepen.io/dzearing/pen/ZBGNQg

Click on an item. Then click another. Then another. Notice selection state is changing. Why? I don't know. I didn't change anything.

We should allow the consumer to specify something like ILinkProps takes onIsSelected method, or the whole Nav does, or both.

dzearing avatar Nov 08 '16 06:11 dzearing

@cmalonzo fyi

dzearing avatar Nov 08 '16 06:11 dzearing

This may need additional clarification before starting. Repro steps, expected vs. actual behavior, etc.

"Click on an item. Then click another. Then another. Notice selection state is changing. Why? I don't know. I didn't change anything." < This line is particularly confusing as clicking on a nav item it would not be unexpected expected to change state.

aleksandrjPersonal avatar Mar 07 '17 18:03 aleksandrjPersonal

This is now resolved.

dzearing avatar Apr 11 '17 18:04 dzearing