(domElement, updatePayload, tag, lastRawProps, nextRawProps)
| 16405 | |
| 16406 | // Apply the diff. |
| 16407 | function updateProperties$1(domElement, updatePayload, tag, lastRawProps, nextRawProps) { |
| 16408 | // Update checked *before* name. |
| 16409 | // In the middle of an update, it is possible to have multiple checked. |
| 16410 | // When a checked radio tries to change name, browser makes another radio's checked false. |
| 16411 | if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) { |
| 16412 | updateChecked(domElement, nextRawProps); |
| 16413 | } |
| 16414 | |
| 16415 | var wasCustomComponentTag = isCustomComponent(tag, lastRawProps); |
| 16416 | var isCustomComponentTag = isCustomComponent(tag, nextRawProps); |
| 16417 | // Apply the diff. |
| 16418 | updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); |
| 16419 | |
| 16420 | // TODO: Ensure that an update gets scheduled if any of the special props |
| 16421 | // changed. |
| 16422 | switch (tag) { |
| 16423 | case 'input': |
| 16424 | // Update the wrapper around inputs *after* updating props. This has to |
| 16425 | // happen after `updateDOMProperties`. Otherwise HTML5 input validations |
| 16426 | // raise warnings and prevent the new value from being assigned. |
| 16427 | updateWrapper(domElement, nextRawProps); |
| 16428 | break; |
| 16429 | case 'textarea': |
| 16430 | updateWrapper$1(domElement, nextRawProps); |
| 16431 | break; |
| 16432 | case 'select': |
| 16433 | // <select> value update needs to occur after <option> children |
| 16434 | // reconciliation |
| 16435 | postUpdateWrapper(domElement, nextRawProps); |
| 16436 | break; |
| 16437 | } |
| 16438 | } |
| 16439 | |
| 16440 | function getPossibleStandardName(propName) { |
| 16441 | { |
nothing calls this directly
no test coverage detected