Exemplo n.º 1
0
 setTimeout(() => {
   const node = findDOMNode(next)
   if (node) {
     const ta = node.querySelector('textarea')
     if (ta && !ta.__dirty) {
       ta.value = next.props.defaultValue
     }
   }
 })
Exemplo n.º 2
0
 setTimeout(() => {
   // Emulate the defaultValue prop for browsers that don't support
   // it on Textareas
   const node = findDOMNode(model)
   if (node) {
     const ta = node.querySelector('textarea')
     if (ta) ta.value = model.props.defaultValue
   }
 })