forcedotcom / lwc-dev-server-feedback

LWC Local Development
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

Dynamically disabled lightning-button (and all elements after) are not rendered #73

Open johnforeland opened 4 years ago

johnforeland commented 4 years ago

Describe the bug When using disable="true" or disable={isDisabled}, LWC Dev Server will NOT render the element, nor any elements AFTER the element with the parameter.

To Reproduce Steps to reproduce the behavior:

  1. Create new LWC
  2. Add the following HTML (example):

    
    <template>
    
    <p>This is visible</p>
    <lightning-button label="This is visible" disabled>
    </lightning-button>
    <lightning-button label="This is NOT visible in Local Dev Server" disable="true">
    </lightning-button>
    <p>This is NOT visible in Local Dev Server</p>


3. Start LWC Dev Server
4. Only get the following:

<img width="1307" alt="Screenshot 2020-07-10 at 12 49 21" src="https://user-images.githubusercontent.com/6638390/87146847-de1f2280-c2ab-11ea-84a5-10f4b1300b11.png">

**Expected behavior**

<img width="1314" alt="Screenshot 2020-07-10 at 12 50 25" src="https://user-images.githubusercontent.com/6638390/87146892-f2fbb600-c2ab-11ea-8283-857ce57a7886.png">

**Desktop (please complete the following information):**
 - OS: macOS Catalina 10.15.5
 - Browser Safari, Chrome
 - Version 13.1.1 (Safari), 83.0.4103.116 (Chrome)
stale[bot] commented 4 years ago

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

git2gus[bot] commented 4 years ago

This issue has been linked to a new work item: W-7836326