Knockout Virtual Elements between TR tags in IE browsers

前端 未结 1 1435
清酒与你
清酒与你 2021-01-22 11:06

I have the following code:

...



    Select Locations 

        
相关标签:
1条回答
  • 2021-01-22 12:01

    This is an issue with Internet Explorer that Knockout can't really compensate for. In your case, a good workaround is to use a tbody tag around your row. A table can include multiple tbody tags. So, your code would look like:

     ...
    </tr>
    <tbody data-bind="if: eLocBound() == 'true'">
    <tr>
        <td>Select Locations <span class="required_star">*</span></td>
        <td><input type="text" /></td>
    </tr>
    </tbody>
    <tr>
    ...
    
    0 讨论(0)
提交回复
热议问题