Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.print not working #878

Open
alirezaRashvand opened this issue Nov 24, 2023 · 3 comments
Open

window.print not working #878

alirezaRashvand opened this issue Nov 24, 2023 · 3 comments
Labels

Comments

@alirezaRashvand
Copy link

alirezaRashvand commented Nov 24, 2023

Description

tag app
	<self>
		<button @click=window.print!> 'Print page'

imba.mount <app>

npm run dev -> not woking
npm run preview -> working

Tried on default and full stack templates

Reproduction

No response

System Environment

System:
    OS: macOS 14.1.1
    CPU: (8) arm64 Apple M2
    Memory: 55.73 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.1.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.2.0 - /opt/homebrew/bin/npm
  Browsers:
    Safari: 17.1
  npmPackages:
    imba: ^2.0.0-alpha.231 => 2.0.0-alpha.231 
  npmGlobalPackages:
    imba: 2.0.0-alpha.231
@Bohooslav
Copy link

It works for me. I think the issue is in the ! mark at the end. You should not call the function -- just pass it to click handler and it'll call it itself when clicked.

@alirezaRashvand
Copy link
Author

It works for me. I think the issue is in the ! mark at the end. You should not call the function -- just pass it to click handler and it'll call it itself when clicked.

No that's not the problem
What browser you use?

@Bohooslav
Copy link

I use Firefox, but the API should be the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants