Skip to content

[BUG] Unlocked cells do not maintain their unlocked status after reading and writing a workbook. #1205

Closed
@Punknium

Description

@Punknium

🐛 Bug Report

If I read in an xlsx file and then write it back out any unlocked cell will become locked.

Lib version: 3.8.2

Steps To Reproduce

Read and write an xlsx file.

Here is a before and after example, See E4 in the before and after.
ExcelJS-FormattingLockedCellAndDatavalidation.xlsx
ExcelJS-AFTER-FormattingLockedCellAndDatavalidation.xlsx

async load() {
  try {
    const wb = new ExcelJS.Workbook()
    await wb.xlsx.load(await this.file.arrayBuffer())
    const out = await wb.xlsx.writeBuffer()
    this.download(out)
  } catch (e) {
    console.error(e)
  }
}

The expected behaviour:

Unlocked cells stay unlocked after reading and writing a file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy