SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Setting an empty value for a field throws error #9913

Closed sch-alib closed 2 months ago

sch-alib commented 2 months ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

not applicable

Developer environment

None

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

The latest splistwebpack files seems to be throwing an error when I try to (re)set an empty value for a field is list/lib item

image image

Steps to reproduce

1.Edit a list item that has a (single line text) field, that has an existing data in the field 2.Delete all characters from the field value (empty string) 3.Press tab key, or just try to save the item

Expected behavior

Depending of the type of field, for example if its a single line of text that does not require a value, an empty string should be set successfully

michaelmaillot commented 2 months ago

Hi,

I confirm I can repro same issue on several environments.

sch-alib commented 2 months ago

This issue seems to have been fixed with the latest splistwebpack version

image

michaelmaillot commented 2 months ago

Yes, I confirm it's also working from my side.