What SharePoint development model, framework, SDK or API is this about?
π₯ SharePoint Framework
Developer environment
No response
What browser(s) / client(s) have you tested
[ ] π₯ Internet Explorer
[X] π₯ Microsoft Edge
[X] π₯ Google Chrome
[X] π₯ FireFox
[ ] π₯ Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)
Additional environment details
No response
Describe the bug / error
Create a lookup field by pnpjs sp.web.lists.getById().addLookup, the lookup field is added successfully, and it can be edit in classic experience field setting page. But when you try to edit field from modern list view header Column Setting -> Edit command item, the *Select a list as source in opened right pane is always the first one, not the correct value.
If you try to add a lookup field with schema xml, when the LookupList attribute is lowercase, this issue disappeared, but if the property is uppercase, this issue can be reproduced. I think this is caused by the uppercase LookupList property.
Steps to reproduce
Create a lookup field by schema with uppercase LookupList property
Edit created field in classic experience field edit page, the source list is correct
Edit created field in modern list view page right pane, by click Field Setting -> Edit command in list view header, the source list property is incorrect
Create a lookup field by schema xml with lowercase LookupList property, this issue disappeared.
Expected behavior
Created lookup field can display the correct source list in modern list view page column edit pane no matter the LookupList property is lowercase or uppercase.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
π₯ SharePoint Framework
Developer environment
No response
What browser(s) / client(s) have you tested
Additional environment details
No response
Describe the bug / error
Create a lookup field by pnpjs
sp.web.lists.getById().addLookup
, the lookup field is added successfully, and it can be edit in classic experience field setting page. But when you try to edit field from modern list view header Column Setting -> Edit command item, the *Select a list as source in opened right pane is always the first one, not the correct value. If you try to add a lookup field with schema xml, when the LookupList attribute is lowercase, this issue disappeared, but if the property is uppercase, this issue can be reproduced. I think this is caused by the uppercase LookupList property.Steps to reproduce
Expected behavior
Created lookup field can display the correct source list in modern list view page column edit pane no matter the LookupList property is lowercase or uppercase.