MCPcopy Create free account
hub / github.com/plotly/dash / updateProperties

Function updateProperties

dash/deps/react-dom@18.3.1.js:10142–10174  ·  view source on GitHub ↗
(domElement, updatePayload, tag, lastRawProps, nextRawProps)

Source from the content-addressed store, hash-verified

10140 } // Apply the diff.
10141
10142 function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
10143 // Update checked *before* name.
10144 // In the middle of an update, it is possible to have multiple checked.
10145 // When a checked radio tries to change name, browser makes another radio's checked false.
10146 if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
10147 updateChecked(domElement, nextRawProps);
10148 }
10149
10150 var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
10151 var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.
10152
10153 updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
10154 // changed.
10155
10156 switch (tag) {
10157 case 'input':
10158 // Update the wrapper around inputs *after* updating props. This has to
10159 // happen after `updateDOMProperties`. Otherwise HTML5 input validations
10160 // raise warnings and prevent the new value from being assigned.
10161 updateWrapper(domElement, nextRawProps);
10162 break;
10163
10164 case 'textarea':
10165 updateWrapper$1(domElement, nextRawProps);
10166 break;
10167
10168 case 'select':
10169 // <select> value update needs to occur after <option> children
10170 // reconciliation
10171 postUpdateWrapper(domElement, nextRawProps);
10172 break;
10173 }
10174 }
10175
10176 function getPossibleStandardName(propName) {
10177 {

Callers 1

commitUpdateFunction · 0.70

Calls 6

updateCheckedFunction · 0.70
isCustomComponentFunction · 0.70
updateDOMPropertiesFunction · 0.70
updateWrapperFunction · 0.70
updateWrapper$1Function · 0.70
postUpdateWrapperFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…