Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    REACT DynamicForm TextItem defaultValue error

    I set the defaultValue="" value in the Text Item and the NaN value shows on my screen.
    Code:
    import React from 'react';
    import ReactDOM from 'react-dom/client';
    import 'smartclient-lgpl/release';
    import { DynamicForm, TextItem } from 'smartclient-lgpl/react';
    const root = ReactDOM.createRoot(document.getElementById('app'));
    root.render(
      <DynamicForm ID="userDataForm" numCols="2" colWidths={["150", "*"]} width="30%" titleAlign="left">
        <items>
          <TextItem
            key="11"
            name="SUBSTITUTE"
            defaultValue=""
            width="*"
          />
        </items>
      </DynamicForm>
    );
    Click image for larger version

Name:	Zwischenablage-1.jpg
Views:	85
Size:	2.6 KB
ID:	271771

    #2
    This should be resolved in today's builds, dated 2024-03-07. Today's builds also correct the sizing problem you reported with the 2024-03-06 builds.
    Last edited by Isomorphic; 7 Mar 2024, 07:10.

    Comment

    Working...
    X